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() |
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 | |
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 | |
ComponentType & GetComponent() |
Returns a typed instance component, creating it lazily the first time it is queried. | UAFAssetInstance.h | |
FUAFAssetInstance * GetHost() |
Get the instance (graph, module etc.) that owns/hosts us. | 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 | |
bool LayoutMatches
(
const FInstancedPropertyBag& InPropertyBag |
Validate that the supplied property bag is of the same layout as this instance's variables. | 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 | |
const ComponentType * TryGetComponent () |
Returns a typed instance component pointer if found or nullptr otherwise. | UAFAssetInstance.h | |
ComponentType * TryGetComponent () |
Returns a typed instance component pointer if found or nullptr otherwise. | 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 InitializeVariables
(
const TSharedPtr< const UE::UAF::FVariableOverridesCollection >& InOverrides |
UAFAssetInstance.h | ||
void MigrateVariables() |
UAFAssetInstance.h | ||
void ReleaseComponents() |
Releases any components this instance hosts. | UAFAssetInstance.h |