Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
Node ID
A node ID fits on 16 bits and is used to encode a node index. The zero ID is reserved as an invalid value, this means that the node index is 1-based.
Node IDs are assigned during compilation of an AnimNext graph to each node. The trait reader is then used to convert them into a shared offset within the graph.
| Name | FNodeID |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitCore/NodeID.h |
| Include Path | #include "TraitCore/NodeID.h" |
Syntax
struct FNodeID
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FNodeID () |
Constructs an invalid FNodeID. | TraitCore/NodeID.h | |
constexpr FNodeID
(
uint16 InID |
Constructs a FNodeID instance from a raw value. | TraitCore/NodeID.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| INVALID_NODE_ID | uint16 | TraitCore/NodeID.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ID | uint16 | TraitCore/NodeID.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNodeID GetNextID() |
Returns the next node ID If the current ID is invalid, the next is invalid as well Note that this function does not handle wrapping if more than 65536 IDs are used If wrapping occurs, the next ID returned will be invalid and all subsequent IDs will be invalid | TraitCore/NodeID.h | |
uint32 GetNodeIndex() |
Returns the node index represented by this node ID If the node ID is invalid, the index returned is 0xFFFFFFFF | TraitCore/NodeID.h | |
bool IsValid() |
Returns whether or not this ID is valid. | TraitCore/NodeID.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FNodeID FromRawValue
(
uint32 InID |
Creates a node handle from a raw packed value. | TraitCore/NodeID.h | |
static FNodeID GetFirstID() |
The first valid node ID. | TraitCore/NodeID.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FNodeID RHS |
TraitCore/NodeID.h | ||
bool operator==
(
const FNodeID RHS |
Equality and inequality tests. | TraitCore/NodeID.h |
See Also
- FTraitReader