Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
Creates or recycles programmatically-generated graphs Uses the hash of the recipe to determine if the graph has been created already. If the hash matches one that has already been created but graph has already been GCed it will be re-created as needed.
| Name | FAnimGraphFactory |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/Factory/AnimGraphFactory.h |
| Include Path | #include "Factory/AnimGraphFactory.h" |
Syntax
struct FAnimGraphFactory
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FParamsInitializer | TFunction< void(const FFactoryParamsInitializerContext &)> | Function used to initialize the object for the factory-generated graph. | Factory/AnimGraphFactory.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const UAnimNextAnimationGraph * BuildGraph
(
const IAnimGraphBuilder& InBuilder |
Make a graph from the specified recipe. | Factory/AnimGraphFactory.h | |
static void Destroy() |
Called on module shutdown to unload everything. | Factory/AnimGraphFactory.h | |
static const UAnimNextAnimationGraph * GetDefaultGraphHost() |
Make the default graph for running a UAnimNextAnimationGraph asset (allowing graphs to blend between each other) | Factory/AnimGraphFactory.h | |
static const FAnimNextFactoryParams & GetDefaultParamsForClass
(
const UClass* InClass |
Get default params used to build & initialize a graph according to registered object class. | Factory/AnimGraphFactory.h | |
static FAnimNextFactoryParams GetDefaultParamsForObject
(
const UObject* InObject |
Get default params used to build & initialize a graph according to registered object class, copying InObject via the registered initializer Effective equivalent of GetDefaultParamsForClass and InitializeDefaultParamsForObject. | Factory/AnimGraphFactory.h | |
static const UAnimNextAnimationGraph * GetOrBuildGraph
(
const UObject* InObject, |
Make a graph from the specified recipe If the object is an UAnimNextAnimationGraph, it will be returned rather than build a new one | Factory/AnimGraphFactory.h | |
static TConstArrayView< UClass * > GetRegisteredClasses() |
Get all registered classes used to generate factory graphs. | Factory/AnimGraphFactory.h | |
static void Init() |
Called on module init. | Factory/AnimGraphFactory.h | |
static void InitializeDefaultParamsForObject
(
const UObject* InObject, |
Applies default initializer to the params (usually injecting the object pointer) | Factory/AnimGraphFactory.h | |
static void OnPreExit() |
Called before engine shutdown to clear internal state while UObjects are still valid. | Factory/AnimGraphFactory.h | |
static void RegisterDefaultParamsForClass
(
const UClass* InClass, |
Register default params used to build & initialize a graph according to the supplied object class. | Factory/AnimGraphFactory.h |