Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
Node Template A node template represents a specific combination and ordering of traits on a node. For example, a sequence player + sync group trait + output caching trait
Multiple node descriptions can share the same template each with their own property/pin values.
Templates can exist in multiple sub-graphs on disk. On load, a single unique copy is retained in memory and shared between ALL graphs.
Node templates are created through the FNodeTemplateBuilder.
| Name | FNodeTemplate |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitCore/NodeTemplate.h |
| Include Path | #include "TraitCore/NodeTemplate.h" |
Syntax
struct FNodeTemplate
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNodeTemplate
(
uint32 InUID, |
TraitCore/NodeTemplate.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MAXIMUM_SIZE | uint32 | The largest size allowed for a node template Node templates are just a lightweight descriptor, in theory they can have any size We artificially specify a conservative upper bound | TraitCore/NodeTemplate.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NodeInstanceDataSize | uint16 | TraitCore/NodeTemplate.h | ||
| NodeSharedDataSize | uint16 | TraitCore/NodeTemplate.h | ||
| NumTraits | uint8 | TraitCore/NodeTemplate.h | ||
| Padding | uint8 | TraitCore/NodeTemplate.h | ||
| UID | uint32 | TraitCore/NodeTemplate.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 GetNodeInstanceDataSize() |
Returns the size in bytes of a node instance (how much space to allocate to hold a node instance of this template) | TraitCore/NodeTemplate.h | |
uint32 GetNodeSharedDataSize() |
Returns the size in bytes of a node shared data. | TraitCore/NodeTemplate.h | |
uint32 GetNodeTemplateSize() |
Returns the size in bytes of this node template. | TraitCore/NodeTemplate.h | |
uint32 GetNumTraits() |
Returns the number of traits present in the node template. | TraitCore/NodeTemplate.h | |
FTraitTemplate * GetTraits () |
Returns a pointer to the list of trait template descriptions. | TraitCore/NodeTemplate.h | |
const FTraitTemplate * GetTraits () |
Returns a pointer to the list of trait template descriptions. | TraitCore/NodeTemplate.h | |
uint32 GetUID() |
Returns the globally unique template identifier (a hash of all the trait UIDs present in this node) | TraitCore/NodeTemplate.h | |
bool IsValid() |
Returns whether the node template is valid or not. | TraitCore/NodeTemplate.h | |
void Serialize
(
FArchive& Ar |
Serializes this node template instance and each trait template that follows. | TraitCore/NodeTemplate.h |
See Also
-
FNodeTemplateBuilder