Navigation
API > API/Plugins > API/Plugins/AnimNext > API/Plugins/AnimNext/Graph
Inheritance Hierarchy
- FAnimNextDataInterfaceInstance
- FAnimNextGraphInstance
References
| Module | AnimNext |
| Header | /Engine/Plugins/Experimental/AnimNext/Source/AnimNext/Public/Graph/AnimNextGraphInstance.h |
| Include | #include "Graph/AnimNextGraphInstance.h" |
Syntax
USTRUCT ()
struct FAnimNextGraphInstance : public FAnimNextDataInterfaceInstance
Remarks
Represents an instance of an AnimNext graph This struct uses UE reflection because we wish for the GC to keep the graph alive while we own a reference to it. It is not intended to be serialized on disk with a live instance.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Creates an empty graph instance that doesn't reference anything. | |||
FAnimNextGraphInstance
(
const FAnimNextGraphInstance& |
No copying, no moving. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| If the graph instance is allocated, we release it during destruction. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddStructReferencedObjects
(
FReferenceCollector& Collector |
Adds strong/hard object references during GC. | |
| const UAnimNextAnimationGraph * | Returns the animation graph used by this instance or nullptr if the instance is invalid. | ||
| ComponentType & | GetComponent () |
Returns a typed graph instance component, creating it lazily the first time it is queried. | |
| GraphInstanceComponentMapType::TConstIterator | Returns const iterators to the graph instance component container. | ||
| FName | Returns the entry point in Graph that this instance corresponds to. | ||
| UE::AnimNext::FWeakTraitPtr | Returns a weak handle to the root trait instance. | ||
| FAnimNextDataInterfaceInstance * | GetHost () |
Get the hosting instance, if any, that owns us. | |
| FAnimNextModuleInstance * | Returns the module instance that owns us or nullptr if we are invalid. | ||
| FAnimNextGraphInstance * | Returns the parent graph instance that owns us or nullptr for the root graph instance or if we are invalid. | ||
| FAnimNextGraphInstance * | Returns the root graph instance that owns us and the components or nullptr if we are invalid. | ||
| FInstancedPropertyBag & | GetVariables () |
||
| bool | HasUpdated () |
Returns whether or not this graph instance has updated at least once. | |
| bool | IsRoot () |
Returns whether or not this graph instance is the root graph instance or false otherwise. | |
| bool | IsValid () |
Returns true if we have a live graph instance, false otherwise. | |
| void | Release () |
Releases the graph instance and frees all corresponding memory. | |
| ComponentType * | Returns a typed graph instance component pointer if found or nullptr otherwise. | ||
| const ComponentType * | Returns a typed graph instance component pointer if found or nullptr otherwise. | ||
| void | Update () |
Called each time the graph updates. | |
| bool | UsesAnimationGraph
(
const UAnimNextAnimationGraph* InAnimationGraph |
Check to see if this instance data matches the provided animation graph. | |
| bool | UsesEntryPoint
(
FName InEntryPoint |
Check to see if this instance data matches the provided graph entry point. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FAnimNextGraphInstance & | operator=
(
const FAnimNextGraphInstance& |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EPublicVariablesState | The current state of public variable bindings to the host. |