RealDocs

UAnimInstance::GetSlotMontageLocalWeight

function Engine Since 4.14
#include "Animation/AnimInstance.h"
Access: public Specifiers: ENGINE_API

Description

Returns the local blend weight (0–1) of any montage active in the named slot, without factoring in parent blend node weights. This is the raw contribution of the montage at that specific slot node.

Caveats & Gotchas

  • The local weight represents the slot's own blend state and does not account for how much the slot contributes to the final pose after upstream blending. For the final contribution, use GetSlotMontageGlobalWeight.
  • Returns 0 when no montage is playing in the slot, including during the blend-out phase after Montage_Stop has been called but the montage has not yet finished fading.

Signature

ENGINE_API float GetSlotMontageLocalWeight(const FName& SlotNodeName) const;

Parameters

Name Type Description Default
SlotNodeName const FName& Name of the slot node to query.

Return Type

float

Example

Drive a pose blend alpha from slot local weight C++
float LocalWeight = GetSlotMontageLocalWeight(FName("FullBodySlot"));
// 0 = fully in base pose, 1 = fully in montage pose
BlendToPosePose = 1.0f - LocalWeight;

Version History

Introduced in: 4.14

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.