UAnimInstance::TriggerAnimNotifies
#include "Animation/AnimInstance.h"
Access: public
Description
Fires the animation notifies and notify states that were queued during this update's evaluation, calling their Notify/NotifyBegin/NotifyTick/NotifyEnd events as appropriate.
Caveats & Gotchas
- • Called automatically once per update as part of the animation tick; calling it a second time in the same frame will re-fire notifies already queued for that update.
- • Notify firing order depends on NotifyQueue's internal ordering, which is generally by time within the animation but can interleave across multiple playing montages/sequences.
Signature
void TriggerAnimNotifies(float DeltaSeconds) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| DeltaSeconds | float | The time elapsed since the last update, used to determine which notifies fall within the ticked range. | — |
Return Type
void Example
Notifies firing as part of the animation update C++
void UAnimInstance::UpdateAnimation(float DeltaSeconds, bool bNeedsValidRootMotion, EUpdateAnimationFlag::Type UpdateFlag)
{
// ... evaluation queues notifies ...
TriggerAnimNotifies(DeltaSeconds);
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?