RealDocs

UAnimInstance::Montage_Stop

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

Description

Stops a playing animation montage, blending it out over InBlendOutTime seconds. Passing NULL stops all active montages.

Signature

void Montage_Stop(float InBlendOutTime, const UAnimMontage* Montage = NULL)

Parameters

Name Type Description Default
InBlendOutTime float Time in seconds to blend out over. Use 0.0 for an immediate stop.
Montage const UAnimMontage* The specific montage to stop. Pass NULL to stop all active montages. NULL

Return Type

void

Caveats & Gotchas

  • Passing InBlendOutTime=0.0 causes an immediate snap to the base pose — use a small blend time (0.2–0.5s) to avoid popping.
  • This overrides the montage asset's own BlendOut settings. Use Montage_StopWithBlendSettings to respect asset-defined blends.
  • If the montage is already blending out, calling Montage_Stop again will restart the blend-out from the current pose.

Example

Stop a specific montage with a blend C++
if (UAnimInstance* AnimInst = GetMesh()->GetAnimInstance())
{
    AnimInst->Montage_Stop(0.25f, AttackMontage);
}

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.