Navigation
API > API/Plugins > API/Plugins/AnimNextAnimGraph
Node Description A node description represents a unique instance in the authored static graph. A node description may have any number of runtime instances in the dynamically executed graph. As such, a node description is read-only at runtime while a node instance is read/write.
A node description is followed in memory by the trait descriptions (their shared read-only data) that live within it. Trait descriptions include things like hard-coded/inline properties, pin links, etc.
A node description is itself an instance of a node template.
| Name | FNodeDescription |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/AnimNextAnimGraph/Source/AnimNextAnimGraph/Public/TraitCore/NodeDescription.h |
| Include Path | #include "TraitCore/NodeDescription.h" |
Syntax
struct FNodeDescription
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNodeDescription
(
FNodeID InNodeID, |
TraitCore/NodeDescription.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MAXIMUM_NODE_SHARED_DATA_SIZE | uint32 | Largest allowed size for a node description and the shared data of its traits We use unsigned 16 bit offsets within the NodeTemplate/TraitTemplate | TraitCore/NodeDescription.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FTraitReader | friend | TraitCore/NodeDescription.h | ||
| NodeID | FNodeID | Assigned during export/cook, unique to current sub-graph (16 bits) | TraitCore/NodeDescription.h | |
| NodeInstanceDataSize | uint16 | The node instance data size, includes latent properties (not serialized,. | TraitCore/NodeDescription.h | |
| Padding0 | uint16 | TraitCore/NodeDescription.h | ||
| TemplateHandle | FNodeTemplateRegistryHandle | Offset of the node template within the global list (16 bits) | TraitCore/NodeDescription.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 GetNodeInstanceDataSize() |
Returns the node instance data size factoring in any cached latent properties. | TraitCore/NodeDescription.h | |
FNodeTemplateRegistryHandle GetTemplateHandle() |
Returns the handle of the node's template in the node template registry. | TraitCore/NodeDescription.h | |
FNodeID GetUID() |
Returns the node UID, unique to the owning sub-graph. | TraitCore/NodeDescription.h | |
void Serialize
(
FArchive& Ar |
Serializes this node description instance and the shared data of each trait that follows. | TraitCore/NodeDescription.h |