UAnimInstance::IsAnyMontagePlaying
#include "Animation/AnimInstance.h"
Access: public
Specifiers: ENGINE_APIconstBlueprintPureUFUNCTION
Description
Returns true if at least one montage is currently in the active list on this anim instance, including those that are blending out. A quick global check before doing more expensive per-montage queries.
Caveats & Gotchas
- • Returns true for montages that are blending out but have not yet fully ended. If you need to confirm that a montage is actually advancing the playhead (not just fading), also check Montage_IsPlaying on the specific montage.
- • This checks all slots and all montage instances. On characters with multiple anim layers or linked anim graphs sharing a slot, a montage from any layer can return true here.
Signature
ENGINE_API bool IsAnyMontagePlaying() const; Return Type
bool Example
Skip idle logic while any montage is active C++
void UMyAnimInstance::NativeUpdateAnimation(float DeltaSeconds)
{
if (IsAnyMontagePlaying())
{
// Skip blend tree idle update
return;
}
UpdateIdleBlendParameters(DeltaSeconds);
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?