Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
Encapsulates a value used as a handle in the trait registry. When valid, it can be used to retrieve a pointer to the corresponding trait.
| Name | FTraitRegistryHandle |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitCore/TraitRegistryHandle.h |
| Include Path | #include "TraitCore/TraitRegistryHandle.h" |
Syntax
struct FTraitRegistryHandle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructed handles are invalid. | TraitCore/TraitRegistryHandle.h | ||
FTraitRegistryHandle
(
int16 HandleValue_ |
TraitCore/TraitRegistryHandle.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HandleValue | int16 | When 0, the handle is invalid When positive, it is a 1-based offset in the registry's static buffer When negative, it is a 1-based index in the registry's dynamic array | TraitCore/TraitRegistryHandle.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetDynamicIndex() |
Returns the dynamic array index for this handle when valid, otherwise INDEX_NONE. | TraitCore/TraitRegistryHandle.h | |
int32 GetStaticOffset() |
Returns the static buffer offset for this handle when valid, otherwise INDEX_NONE. | TraitCore/TraitRegistryHandle.h | |
bool IsDynamic() |
Returns whether or not this handle is valid and points to a dynamic trait. | TraitCore/TraitRegistryHandle.h | |
bool IsStatic() |
Returns whether or not this handle is valid and points to a static trait. | TraitCore/TraitRegistryHandle.h | |
bool IsValid() |
Returns whether or not this handle points to a valid trait. | TraitCore/TraitRegistryHandle.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FTraitRegistryHandle MakeDynamic
(
int32 TraitIndex |
Creates a dynamic handle based on a trait index in the dynamic array. | TraitCore/TraitRegistryHandle.h | |
static FTraitRegistryHandle MakeStatic
(
int32 TraitOffset |
Creates a static handle based on a trait offset in the static buffer. | TraitCore/TraitRegistryHandle.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
FTraitRegistryHandle RHS |
TraitCore/TraitRegistryHandle.h | ||
bool operator==
(
FTraitRegistryHandle RHS |
Compares for equality and inequality. | TraitCore/TraitRegistryHandle.h |