RealDocs

UAnimInstance::TriggerSingleAnimNotify

function Engine Since 4.0
#include "Animation/AnimInstance.h"
Access: public

Description

Fires a single anim notify event directly, without going through the queued notify list built up during evaluation.

Caveats & Gotchas

  • There is a second overload, TriggerSingleAnimNotify(FAnimNotifyEventReference&), that passes additional context used by derived notify event types — prefer that overload when the caller has an event reference available.
  • This raw-pointer overload provides no context for the event, so notify implementations that rely on FAnimNotifyEventReference-derived context will not receive it.

Signature

void TriggerSingleAnimNotify(const FAnimNotifyEvent* AnimNotifyEvent)

Parameters

Name Type Description Default
AnimNotifyEvent const FAnimNotifyEvent* The notify event to fire.

Return Type

void

Example

Fire a notify outside the normal queue C++
if (const FAnimNotifyEvent* NotifyEvent = FindCustomNotify())
{
    AnimInstance->TriggerSingleAnimNotify(NotifyEvent);
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.