Navigation
API > API/Plugins > API/Plugins/AnimNext > API/Plugins/AnimNext/TraitCore
References
| Module | AnimNext |
| Header | /Engine/Plugins/Experimental/AnimNext/Source/AnimNext/Public/TraitCore/TraitHandle.h |
| Include | #include "TraitCore/TraitHandle.h" |
Syntax
USTRUCT (BlueprintType )
struct FAnimNextTraitHandle
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| constexpr | Creates an invalid trait handle. | ||
| constexpr | FAnimNextTraitHandle
(
UE::AnimNext::FNodeHandle NodeHandle |
Creates a trait handle pointing to the first trait of the specified node. | |
FAnimNextTraitHandle
(
UE::AnimNext::FNodeHandle NodeHandle, |
Creates a trait handle pointing to the specified trait on the specified node. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UE::AnimNext::FNodeHandle | Returns a handle to the node referenced. | ||
| uint32 | Returns the trait index. | ||
| bool | IsValid () |
Returns true if this trait handle is valid, false otherwise. | |
| bool |
Constants
| Name | Description |
|---|---|
| NODE_HANDLE_MASK | |
| TRAIT_INDEX_SHIFT | Bottom 24 bits are used by the node handle while the top 8 bits by the trait index. |
See Also
FNodeDescription
FNodeHandle