UAnimInstance::Montage_GetBlendingOutDelegate
#include "Animation/AnimInstance.h"
Access: public
Specifiers: ENGINE_API
Description
Returns a pointer to the FOnMontageBlendingOutStarted delegate for the given montage instance, enabling inspection or late binding after the montage has started playing.
Caveats & Gotchas
- • Returns nullptr if the specified montage is not currently playing. Always guard against null before use.
- • The pointer is owned by the FAnimMontageInstance and becomes dangling once the montage ends. Do not store it beyond the scope of a single frame.
Signature
ENGINE_API FOnMontageBlendingOutStarted* Montage_GetBlendingOutDelegate(UAnimMontage* Montage = nullptr); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Montage | UAnimMontage* | The montage whose blending-out delegate to retrieve. Nullptr returns the delegate for the topmost active instance. | nullptr |
Return Type
FOnMontageBlendingOutStarted* Example
Late-bind a blending-out callback after play has started C++
// Useful when you don't have direct access to the play call site
FOnMontageBlendingOutStarted* BlendOutDelegate = AnimInstance->Montage_GetBlendingOutDelegate(TargetMontage);
if (BlendOutDelegate && !BlendOutDelegate->IsBound())
{
BlendOutDelegate->BindUObject(this, &AMyCharacter::OnBlendingOut);
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?