Navigation
API > API/Plugins > API/Plugins/UAF
Base struct for instances of UAF assets.
| Name | FUAFAssetInstance |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/UAFAssetInstance.h |
| Include Path | #include "UAFAssetInstance.h" |
Syntax
USTRUCT ()
struct FUAFAssetInstance
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUAFAssetInstance
(
UScriptStruct* InScriptStruct |
UAFAssetInstance.h | ||
| UAFAssetInstance.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EPropertyBagResult AccessVariable
(
const FAnimNextVariableReference& InVariable, |
Access a variable's value given its name. Type must match strictly, no conversions are performed. | UAFAssetInstance.h | |
bool AccessVariablesStruct
(
const UScriptStruct* InStruct, |
Access the memory of the shared variable struct directly. | UAFAssetInstance.h | |
bool AccessVariablesStruct
(
TFunctionRef< void(StructType&)> InFunction |
Access the memory of the shared variable struct directly. | UAFAssetInstance.h | |
const DerivedType & As () |
Returns this instance as the specified derived type. Asserts if our type is not a child type. | UAFAssetInstance.h | |
DerivedType & As () |
Returns this instance as the specified derived type. Asserts if our type is not a child type. | UAFAssetInstance.h | |
DerivedType * AsPtr () |
Returns this instance as the specified derived type, if our struct type is a child type. | UAFAssetInstance.h | |
const DerivedType * AsPtr () |
Returns this instance as the specified derived type, if our struct type is a child type. | UAFAssetInstance.h | |
bool ExecuteParameterlessFunction
(
const FAnimNextFunctionReference& InFunction, |
Execute a bound parameterless function and copy the return value into OutReturnValue. | UAFAssetInstance.h | |
void ForEachComponent
(
TFunctionRef< bool(ComponentType&)> InFunction |
Iterates all components, calling the supplied predicate. If the predicate returns false, iteration stops. | UAFAssetInstance.h | |
void ForEachVariablesStruct
(
TFunctionRef< void(FStructView)> InFunction |
Access the memory of the shared variable struct directly. | UAFAssetInstance.h | |
void GetAllVariablesOfType
(
TArray< FAnimNextVariableReference >& OutVariables |
Find references to all variables of the specified type | UAFAssetInstance.h | |
const AssetType * GetAsset() |
Get the asset that this instance represents. | UAFAssetInstance.h | |
FName GetAssetName() |
Safely get the name of the asset that this host provides. | UAFAssetInstance.h | |
FUAFAssetInstance * GetHost() |
Get the instance (graph, module etc.) that owns/hosts us. | UAFAssetInstance.h | |
FUAFAssetInstanceComponent & GetOrAddComponent
(
TSubScriptStructOf< FUAFAssetInstanceComponent > InScriptStruct |
Returns an instance component of the requested type, creating it lazily the first time it is queried. | UAFAssetInstance.h | |
ComponentType & GetOrAddComponent () |
Returns a typed instance component, creating it lazily the first time it is queried. | UAFAssetInstance.h | |
FAnimNextModuleInstance * GetRootInstance() |
Get the root module instance that owns us. Can be nullptr in some cases, such as automated tests. | UAFAssetInstance.h | |
const UScriptStruct * GetScriptStruct() |
Get the struct type of this instance. | UAFAssetInstance.h | |
uint64 GetUniqueId() |
UAFAssetInstance.h | ||
EPropertyBagResult GetVariable
(
const FAnimNextVariableReference& InVariable, |
Get a variable's value given its name, copying the value to OutResult. | UAFAssetInstance.h | |
EPropertyBagResult GetVariable
(
const FAnimNextVariableReference& InVariable, |
Get a variable's value given its name, copying the value to OutResult. | UAFAssetInstance.h | |
| UAFAssetInstance.h | |||
const FUAFInstanceVariableData & GetVariables () |
UAFAssetInstance.h | ||
bool LayoutMatches
(
const FInstancedPropertyBag& InPropertyBag |
Validate that the supplied property bag is of the same layout as this instance's variables. | UAFAssetInstance.h | |
void SetDebugName
(
FName Name |
Sets the debug name for the instance, used for tracing etc. | UAFAssetInstance.h | |
EPropertyBagResult SetVariable
(
const FAnimNextVariableReference& InVariable, |
Set a variable's value given a reference. | UAFAssetInstance.h | |
EPropertyBagResult SetVariable
(
const FAnimNextVariableReference& InVariable, |
Set a variable's value given a reference. | UAFAssetInstance.h | |
ComponentType * TryGetComponent () |
Returns a typed instance component pointer if found or nullptr otherwise. | UAFAssetInstance.h | |
const ComponentType * TryGetComponent () |
Returns a typed instance component pointer if found or nullptr otherwise (const). | UAFAssetInstance.h | |
FUAFAssetInstanceComponent * TryGetComponent
(
const UScriptStruct* InStruct |
Returns a typed instance component pointer if found or nullptr otherwise. | UAFAssetInstance.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AccessVariablePropertyByIndex
(
int32 InIndex, |
Access the variable by index directly. | UAFAssetInstance.h | |
void BindDefaultComponents() |
Binds all components during initialization (once instance has been set up, variables created etc.) | UAFAssetInstance.h | |
void CopyDefaultComponents() |
Used on instance initialization to copy default components from the asset. | UAFAssetInstance.h | |
FName GetDebugName() |
UAFAssetInstance.h | ||
void InitializeVariables
(
const TSharedPtr< const UE::UAF::FVariableOverridesCollection >& InOverrides |
UAFAssetInstance.h | ||
void MigrateVariables() |
UAFAssetInstance.h | ||
void ReleaseComponents() |
Releases any components this instance hosts. | UAFAssetInstance.h |