RealDocs

UAnimInstance::Montage_IsPlaying

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

Description

Returns true if the specified montage is currently active and playing (not paused, not blending out).

Signature

bool Montage_IsPlaying(const UAnimMontage* Montage) const

Parameters

Name Type Description Default
Montage const UAnimMontage* The montage to check. If NULL, returns true if any montage is playing.

Return Type

bool

Caveats & Gotchas

  • Returns false during blend-out — the montage is still technically active but Montage_IsPlaying will be false. Use Montage_IsActive() if you need to detect the blend-out phase.
  • Passing NULL returns true if ANY montage is currently playing.

Example

Gate an action on montage completion C++
if (UAnimInstance* AnimInst = GetMesh()->GetAnimInstance())
{
    if (!AnimInst->Montage_IsPlaying(AttackMontage))
    {
        // Safe to play next action
    }
}

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.