RealDocs

UAnimInstance::StopSlotAnimation

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

Description

Stops the dynamic montage playing in the given slot node and blends back to the base pose over the specified time. Pass NAME_None to stop all active slot animations simultaneously.

Caveats & Gotchas

  • Passing NAME_None stops every slot animation on the anim instance — including slots managed by other systems. Be explicit with slot names in complex anim graphs.
  • This only affects animations started via PlaySlotAnimationAsDynamicMontage; regular UAnimMontage playback started with Montage_Play is not affected.

Signature

ENGINE_API void StopSlotAnimation(float InBlendOutTime = 0.25f, FName SlotNodeName = NAME_None);

Parameters

Name Type Description Default
InBlendOutTime float Time in seconds to blend back to the underlying pose. 0.25f
SlotNodeName FName The slot to stop. Pass NAME_None to stop all active slot animations. NAME_None

Return Type

void

Example

Stop a specific slot on ability cancel C++
// Blend out over 0.1s to snap back quickly on cancel
GetMesh()->GetAnimInstance()->StopSlotAnimation(0.1f, FName("UpperBodySlot"));

Version History

Introduced in: 4.8

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.