UAnimInstance::Blueprint_GetSlotMontageLocalWeight
#include "Animation/AnimInstance.h"
Access: public
Specifiers: UFUNCTIONBlueprintPure
Description
Returns the current local blend weight (0–1) of any montage playing in the named slot. Returns 0 if no montage is active in that slot.
Caveats & Gotchas
- • The function is named with the Blueprint_ prefix for historical reasons — C++ callers should use the same name; there is no separate non-Blueprint variant.
- • This function is BlueprintThreadSafe and evaluates on the animation worker thread, but the returned weight reflects the value computed in the previous frame — not the value being evaluated in the current graph update.
Signature
ENGINE_API float Blueprint_GetSlotMontageLocalWeight(FName SlotNodeName) const; Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| SlotNodeName | FName | The slot node to query. | — |
Return Type
float Example
Scale IK influence by slot weight C++
float SlotWeight = AnimInstance->Blueprint_GetSlotMontageLocalWeight(FName("UpperBodySlot"));
// Reduce IK contribution when the slot is fully active
float IKAlpha = 1.0f - SlotWeight; Tags
Version History
Introduced in: 4.14
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?