Navigation
API > API/Editor > API/Editor/AnimationBlueprintLibrary > API/Editor/AnimationBlueprintLibrary/UAnimationBlueprintLibrary
Description
Experimental: Adds a custom animation notify event to the specified animation sequence at the given time and on the specified notify track.
A new notify event will be created using relevant data copied from the provided NotifyEvent. The UAnimNotify is extracted from NotifyEvent and, if it is not already owned by the animation sequence (not part of its outer), it will be automatically duplicated. Only properties exposed to Blueprints in the NotifyEvent (such as TriggerWeightThreshold and NotifyTriggerChance) will be copied.
| Name | AddAnimationNotifyEventFromSource |
| Type | function |
| Header File | /Engine/Source/Editor/AnimationBlueprintLibrary/Public/AnimationBlueprintLibrary.h |
| Include Path | #include "AnimationBlueprintLibrary.h" |
| Source | /Engine/Source/Editor/AnimationBlueprintLibrary/Private/AnimationBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="AnimationBlueprintLibrary|NotifyEvents")
static UAnimNotify * AddAnimationNotifyEventFromSource
(
UAnimSequenceBase * AnimationSequenceBase,
float StartTime,
FAnimNotifyEvent NotifyEvent,
FName NotifyTrackName
)
The UAnimNotify used in the new notify event (original or duplicated).
Parameters
| Name | Remarks |
|---|---|
| AnimationSequenceBase | The animation sequence to which the new notify event will be added. |
| StartTime | The time (in seconds) within the sequence where the notify should be placed. |
| NotifyEvent | The source notify event used to initialize the new one. Its UAnimNotify will be extracted and validated. |
| NotifyTrackName | The name of the notify track to add the notify to. |