Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
Trait Handle A trait handle represents a reference to a specific trait instance in the shared/read-only portion of a sub-graph. It points to a FNodeDescription when resolved.
Internally, it contains a node handle and a trait index. Trait handles can only be used within an AnimNext graph serialized with FTraitWriter.
| Name | FAnimNextTraitHandle |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitCore/TraitHandle.h |
| Include Path | #include "TraitCore/TraitHandle.h" |
Syntax
USTRUCT (BlueprintType )
struct FAnimNextTraitHandle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FAnimNextTraitHandle () |
Creates an invalid trait handle. | TraitCore/TraitHandle.h | |
constexpr FAnimNextTraitHandle
(
UE::UAF::FNodeHandle NodeHandle |
Creates a trait handle pointing to the first trait of the specified node. | TraitCore/TraitHandle.h | |
FAnimNextTraitHandle
(
UE::UAF::FNodeHandle NodeHandle, |
Creates a trait handle pointing to the specified trait on the specified node. | TraitCore/TraitHandle.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| NODE_HANDLE_MASK | uint32 | TraitCore/TraitHandle.h | |
| TRAIT_INDEX_SHIFT | uint32 | Bottom 24 bits are used by the node handle while the top 8 bits by the trait index. | TraitCore/TraitHandle.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PackedTraitIndexAndNodeHandle | uint32 | TraitCore/TraitHandle.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UE::UAF::FNodeHandle GetNodeHandle() |
Returns a handle to the node referenced. | TraitCore/TraitHandle.h | |
uint32 GetTraitIndex() |
Returns the trait index. | TraitCore/TraitHandle.h | |
bool IsValid() |
Returns true if this trait handle is valid, false otherwise. | TraitCore/TraitHandle.h | |
bool Serialize
(
FArchive& Ar |
TraitCore/TraitHandle.h |
See Also
-
FNodeDescription
-
FNodeHandle