UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimNode_Slot.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
9#include "AnimNode_Slot.generated.h"
10
11// An animation slot node normally acts as a passthru, but a montage or PlaySlotAnimation call from
12// game code can cause an animation to blend in and be played on the slot temporarily, overriding the
13// Source input.
14USTRUCT(BlueprintInternalUseOnly)
16{
18
19 // The source input, passed thru to the output unless a montage or slot animation is currently playing
20 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Links)
21 FPoseLink Source;
22
23 // The name of this slot, exposed to gameplay code, etc...
24 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Settings, meta=(CustomizeProperty))
25 FName SlotName;
26
27 //Whether we should continue to update the source pose regardless of whether it would be used.
28 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Settings)
29 bool bAlwaysUpdateSourcePose;
30
32 virtual void PostEvaluateSourcePose(FPoseContext& SourceContext) {}
33
36
37public:
39
40 // FAnimNode_Base interface
41 ANIMGRAPHRUNTIME_API virtual void Initialize_AnyThread(const FAnimationInitializeContext& Context) override;
42 ANIMGRAPHRUNTIME_API virtual void CacheBones_AnyThread(const FAnimationCacheBonesContext& Context) override;
43 ANIMGRAPHRUNTIME_API virtual void Update_AnyThread(const FAnimationUpdateContext& Context) override;
44 ANIMGRAPHRUNTIME_API virtual void Evaluate_AnyThread(FPoseContext& Output) override;
45 ANIMGRAPHRUNTIME_API virtual void GatherDebugData(FNodeDebugData& DebugData) override;
46 // End of FAnimNode_Base interface
47};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition NameTypes.h:617
Definition AnimNodeBase.h:853
Definition AnimNode_Slot.h:16
FSlotNodeWeightInfo WeightData
Definition AnimNode_Slot.h:34
FGraphTraversalCounter SlotNodeInitializationCounter
Definition AnimNode_Slot.h:35
Definition AnimNodeBase.h:337
Definition AnimNodeBase.h:324
Definition AnimNodeBase.h:354
Definition AnimTypes.h:144
Definition AnimNodeBase.h:642
Definition AnimNodeBase.h:479
Definition AnimTypes.h:611