UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExposedValueHandler.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"
7
8#include "ExposedValueHandler.generated.h"
9
11class UClass;
14
15UENUM()
22
23USTRUCT()
25{
27
29
36
37 UPROPERTY()
38 int32 CopyIndex = INDEX_NONE;
39
40 UPROPERTY()
42
43 UPROPERTY()
44 bool bOnlyUpdateWhenActive = false;
45};
46
47// An exposed value updater
48USTRUCT()
50{
52
54
56
57 // Direct data access to property in anim instance
58 UE_DEPRECATED(5.3, "This has been moved to FAnimNodeExposedValueHandler")
60
61 // function pointer if BoundFunction != NAME_None
62 UE_DEPRECATED(5.3, "This has been moved to FAnimNodeExposedValueHandler")
64
65 UE_DEPRECATED(5.3, "This has been moved to FAnimNodeExposedValueHandler")
66 static ENGINE_API const FPropertyAccessLibrary* PropertyAccessLibrary;
67
68 UE_DEPRECATED(5.3, "This has been moved to FAnimNodeExposedValueHandler")
69 static ENGINE_API FName BoundFunction;
70
71 UE_DEPRECATED(5.3, "This function was meant for internal use, but was public. Initialization should now use the internal FAnimNodeExposedValueHandler")
72 static ENGINE_API void ClassInitialization(TArray<FExposedValueHandler>& Handlers, UClass* InClass);
73
74 UE_DEPRECATED(5.3, "This function was meant for internal use, but was public. Initialization should now use the internal FAnimNodeExposedValueHandler")
76
77 // Execute the handler
79
80 // Access the handler struct
81 const UScriptStruct* GetHandlerStruct() const { return HandlerStruct; }
82
83 // Access the handler
84 const FAnimNodeExposedValueHandler* GetHandler() const { return Handler; }
85
86private:
87 // The type of the handler
88 UScriptStruct* HandlerStruct = nullptr;
89
90 // Ptr to actual handler (property of the anim instance)
91 FAnimNodeExposedValueHandler* Handler = nullptr;
92};
93
94USTRUCT()
96{
98
100
102
103 // Set up the handler when the class is loaded
104 virtual void Initialize(const UClass* InClass) {}
105
106 // Execute the handler to set specified values in a node
107 virtual void Execute(const FAnimationBaseContext& InContext) const {}
108};
109
110USTRUCT()
112{
114
115 friend class UAnimBlueprintExtension_Base;
116
117 // FAnimNodeExposedValueHandler interface
120
121 // function pointer if BoundFunction != NAME_None
122 UPROPERTY()
124
125 // The function to call to update associated properties (can be NAME_None)
126 UPROPERTY()
127 FName BoundFunction;
128};
129
130USTRUCT()
132{
134
135 friend class UAnimBlueprintExtension_Base;
136
137 // FAnimNodeExposedValueHandler interface
140
141 // Direct data access to property in anim instance
142 UPROPERTY()
144
145 // Cached property access library ptr
146 const FPropertyAccessLibrary* PropertyAccessLibrary;
147};
OODEFFUNC typedef const int const char * function
Definition oodle2.h:710
@ INDEX_NONE
Definition CoreMiscDefines.h:150
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
EPostCopyOperation
Definition ExposedValueHandler.h:17
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition NameTypes.h:617
Definition Array.h:670
Definition Class.h:3793
Definition Class.h:2476
Definition Class.h:1720
@ false
Definition radaudio_common.h:23
Definition ExposedValueHandler.h:112
Definition ExposedValueHandler.h:132
Definition ExposedValueHandler.h:96
virtual void Execute(const FAnimationBaseContext &InContext) const
Definition ExposedValueHandler.h:107
virtual void Initialize(const UClass *InClass)
Definition ExposedValueHandler.h:104
Definition AnimSubsystem_Base.h:12
Definition AnimNodeBase.h:159
Definition ExposedValueHandler.h:25
Definition ExposedValueHandler.h:50
const FAnimNodeExposedValueHandler * GetHandler() const
Definition ExposedValueHandler.h:84
Definition PropertyAccess.h:402
Definition ObjectPtr.h:488