UAnimInstance::EndNotifyStates
#include "Animation/AnimInstance.h"
Access: public
Description
Calls NotifyEnd on every currently active anim notify state and clears the active notify state array.
Caveats & Gotchas
- • Called automatically during instance teardown/uninitialization to guarantee matching NotifyBegin/NotifyEnd pairs; skipping it (by not calling Super:: in an override chain) can leave gameplay-side state stuck 'active' forever.
- • Ends every active notify state unconditionally — it does not check whether the notify's natural end time has been reached, so this is a hard stop, not a natural completion.
Signature
void EndNotifyStates() Return Type
void Example
Force-clear notify states, e.g. on instance shutdown C++
void UAnimInstance::UninitializeAnimation()
{
EndNotifyStates();
// ... further teardown ...
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?