UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimNode_StateResult.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_StateResult.generated.h"
10
12class UAnimGraphNode_StateResult;
13
14// Root node of an state machine state (sink node).
15// We dont use AnimNode_Root to let us distinguish these nodes in the property list at link time.
16USTRUCT(BlueprintInternalUseOnly)
18{
20
21
22 ENGINE_API bool SerializeFromMismatchedTag(const FPropertyTag& Tag, FStructuredArchive::FSlot Slot);
23
24#if WITH_EDITORONLY_DATA
25protected:
26
28 UPROPERTY(meta = (FoldProperty))
29 int32 StateIndex = -1;
30#endif
31
32public:
33#if WITH_EDITORONLY_DATA
34 void SetStateIndex(int32 InStateIndex) { StateIndex = InStateIndex; }
35#endif
36
37 ENGINE_API int32 GetStateIndex() const;
38
40 ENGINE_API const FAnimNodeFunctionRef& GetStateEntryFunction() const;
41
43 ENGINE_API const FAnimNodeFunctionRef& GetStateFullyBlendedInFunction() const;
44
46 ENGINE_API const FAnimNodeFunctionRef& GetStateExitFunction() const;
47
49 ENGINE_API const FAnimNodeFunctionRef& GetStateFullyBlendedOutFunction() const;
50
51private:
53 friend class UAnimGraphNode_StateResult;
54
55#if WITH_EDITORONLY_DATA
56
60
64
68
72
73#endif
74};
75
76template<>
78 : public TStructOpsTypeTraitsBase2<FAnimNode_StateResult>
79{
80 enum
81 {
83 };
84};
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 USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition StructuredArchiveSlots.h:52
Definition AnimNodeFunctionRef.h:25
Definition AnimNode_Root.h:13
Definition AnimNode_StateMachine.h:123
Definition AnimNode_StateResult.h:18
Definition PropertyTag.h:38
Definition StructOpsTypeTraits.h:11
@ WithStructuredSerializeFromMismatchedTag
Definition StructOpsTypeTraits.h:29
Definition StructOpsTypeTraits.h:46