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 TConstStructView< FUAFGraphFactoryAsset > &, FAnimNextFactoryParams &)> | Function used to initialize the object for the factory-generated graph. | Factory/AnimGraphFactory.h |
| TParamsInitializer | TFunction< void(const TAssetData &, FAnimNextFactoryParams &)> | Factory/AnimGraphFactory.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AllFactoryStructs | TArray< TSoftObjectPtr< UScriptStruct > > | Factory/AnimGraphFactory.h | |
| DefaultParamsForObject | TMap< FTopLevelAssetPath, TPair< FAnimNextFactoryParams, FParamsInitializer > > | Factory/AnimGraphFactory.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const UUAFAnimGraph * 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 TPair< FAnimNextFactoryParams, FParamsInitializer > * FindGraphParamsForAssetData
(
FGraphAssetHandleConstView AssetData |
Factory/AnimGraphFactory.h | ||
static const UUAFAnimGraph * GetDefaultGraphHost() |
Make the default graph for running a UUAFAnimGraph asset (allowing graphs to blend between each other) | Factory/AnimGraphFactory.h | |
static FAnimNextFactoryParams GetDefaultParamsForAsset
(
FGraphAssetHandleConstView Asset |
Factory/AnimGraphFactory.h | ||
static const UUAFAnimGraph * GetOrBuildGraph
(
UE::UAF::FGraphAssetHandleConstView InAsset, |
Warning: duplicate functionality with IGraphFactory | Factory/AnimGraphFactory.h | |
static TConstArrayView< TSoftObjectPtr< UScriptStruct > > GetSupportedAssetDataTypes() |
Factory/AnimGraphFactory.h | ||
static void Init() |
Called on module init. | Factory/AnimGraphFactory.h | |
static void InitializeDefaultParamsForAsset
(
FGraphAssetHandleConstView Asset, |
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 RegisterAsset
(
FAnimNextFactoryParams&& InParams, |
Factory/AnimGraphFactory.h | ||
static void RegisterAsset
(
const TSubScriptStructOf< FUAFGraphFactoryAsset >& AssetStructType, |
Register default params used to build & initialize a graph according to the supplied asset class. | Factory/AnimGraphFactory.h |