Navigation
API > API/Plugins > API/Plugins/AnimNext > API/Plugins/AnimNext/TraitCore
References
| Module | AnimNext |
| Header | /Engine/Plugins/Experimental/AnimNext/Source/AnimNext/Public/TraitCore/NodeID.h |
| Include | #include "TraitCore/NodeID.h" |
Syntax
struct FNodeID
Remarks
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.
Constructors
Functions
| Type | Name | Description | |
|---|---|---|---|
| FNodeID | GetFirstID () |
The first valid node ID. | |
| 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 | |
| uint32 | GetNodeIndex () |
Returns the node index represented by this node ID If the node ID is invalid, the index returned is 0xFFFFFFFF | |
| bool | IsValid () |
Returns whether or not this ID is valid. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FNodeID RHS |
||
| bool | operator==
(
const FNodeID RHS |
Equality and inequality tests. |
Constants
| Name | Description |
|---|---|
| INVALID_NODE_ID |
See Also
FTraitReader