Navigation
API > API/Plugins > API/Plugins/UAF > API/Plugins/UAF/FUAFAssetInstance
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ComponentType & GetOrAddComponent () |
Returns a typed instance component, creating it lazily the first time it is queried. | 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 |
GetOrAddComponent()
Description
Returns a typed instance component, creating it lazily the first time it is queried. When querying for structs of a base type, existing derived types will be returned, rather than a new base struct created.
| Name | GetOrAddComponent |
| Type | function |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/UAFAssetInstance.h |
| Include Path | #include "UAFAssetInstance.h" |
template<typename ComponentType>
ComponentType & GetOrAddComponent()
GetOrAddComponent(TSubScriptStructOf< FUAFAssetInstanceComponent >)
Description
Returns an instance component of the requested type, creating it lazily the first time it is queried. When querying for structs of a base type, existing derived types will be returned, rather than a new base struct created.
| Name | GetOrAddComponent |
| Type | function |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/UAFAssetInstance.h |
| Include Path | #include "UAFAssetInstance.h" |
FUAFAssetInstanceComponent & GetOrAddComponent
(
TSubScriptStructOf < FUAFAssetInstanceComponent > InScriptStruct
)