Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
An owning reference to a UAF graph. Provides a way for external systems to own an anim graph, but not have to fully allocate the graph before use
| Name | FAnimGraphReference |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/Graph/AnimGraphReference.h |
| Include Path | #include "Graph/AnimGraphReference.h" |
Syntax
struct FAnimGraphReference
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default-constructable only because it needs to be embedded in UObjects/UStructs. | Graph/AnimGraphReference.h | ||
FAnimGraphReference
(
TNonNullPtr< const UUAFAnimGraph > InAnimGraph, |
Construct an owning handle to a graph instance. | Graph/AnimGraphReference.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FWeakAnimGraphReference | friend | Graph/AnimGraphReference.h | ||
| Ptr | TSharedPtr< FAnimNextGraphInstance > | Pointer to the instance. | Graph/AnimGraphReference.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddReferencedObjects
(
FReferenceCollector& InCollector |
GC support. | Graph/AnimGraphReference.h | |
const UUAFAnimGraph * GetAnimGraph() |
Get the anim graph that this handle references Can be called on any thread. | Graph/AnimGraphReference.h | |
bool IsValid() |
Check if this handle is valid Can be called on any thread. | Graph/AnimGraphReference.h | |
void QueueTask
(
FUniqueAnimGraphTask&& InTaskFunction |
Queue task to execute on the instance Can be called on any thread. | Graph/AnimGraphReference.h | |
void Reset() |
Reset this handle to invalid - gives up ownership Can be called on any thread | Graph/AnimGraphReference.h | |
void SetDebugName
(
FName InName |
Sets the debug name for the instance, used for tracing etc. | Graph/AnimGraphReference.h | |
FWeakAnimGraphReference ToWeakRef() |
Make a weak reference from this owning reference. | Graph/AnimGraphReference.h |