UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimNode_BlendListByEnum.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"
8#include "AnimNode_BlendListByEnum.generated.h"
9
10// Blend List by Enum, it changes based on enum input that enters
11USTRUCT(BlueprintInternalUseOnly)
13{
15
16private:
17#if WITH_EDITORONLY_DATA
18 // Mapping from enum value to BlendPose index; there will be one entry per entry in the enum; entries out of range always map to pose index 0
21
22 // The currently selected pose (as an enum value)
23 UPROPERTY(EditAnywhere, Category=Runtime, meta=(PinShownByDefault, FoldProperty))
24 mutable uint8 ActiveEnumValue = 0;
25#endif
26
27public:
29
30#if WITH_EDITORONLY_DATA
31 // Set the mapping from enum value to BlendPose index. Called during compilation.
33#endif
34
35 // Get the mapping from enum value to BlendPose index; there will be one entry per entry in the enum; entries out of range always map to pose index 0
36 ANIMGRAPHRUNTIME_API const TArray<int32>& GetEnumToPoseIndex() const;
37
38 // Get the currently selected pose (as an enum value)
39 ANIMGRAPHRUNTIME_API uint8 GetActiveEnumValue() const;
40
41protected:
42 ANIMGRAPHRUNTIME_API virtual int32 GetActiveChildIndex() override;
43 virtual FString GetNodeName(FNodeDebugData& DebugData) override { return DebugData.GetNodeName(this); }
44};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
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 GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition Array.h:670
Definition AnimNode_BlendListBase.h:38
Definition AnimNode_BlendListByEnum.h:13
virtual FString GetNodeName(FNodeDebugData &DebugData) override
Definition AnimNode_BlendListByEnum.h:43
FAnimNode_BlendListByEnum()=default
Definition AnimNodeBase.h:642
FString GetNodeName(Type *Node)
Definition AnimNodeBase.h:704