RealDocs

UAnimInstance::Montage_StopGroupByName

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

Description

Stops all active montages belonging to the named slot group, blending each out over the specified duration. Useful when multiple montages share a group and need to be cleared together.

Caveats & Gotchas

  • GroupName refers to the Slot Group defined in the Anim Graph (e.g. 'DefaultGroup'), not the slot node name — verify the group name in the Skeleton's Anim Slot Manager.
  • All montages in the group are stopped with the same blend-out time regardless of their individual blend-out settings, which can look incorrect for montages at different points in their timeline.

Signature

ENGINE_API void Montage_StopGroupByName(float InBlendOutTime, FName GroupName);

Parameters

Name Type Description Default
InBlendOutTime float Seconds to blend out all stopped montages.
GroupName FName The slot group name whose montages should be stopped.

Return Type

void

Example

Clear all default group montages on ragdoll activation C++
AnimInstance->Montage_StopGroupByName(0.1f, FName("DefaultGroup"));

Version History

Introduced in: 4.12

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.