Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FAssetData
Description
Returns the asset UObject if it is loaded or loads the asset if it is unloaded then returns the result
Note this can return nullptr even if it looks like the asset exists because it doesn't handle redirects.
| Name | GetAsset |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/AssetRegistry/AssetData.h |
| Include Path | #include "AssetRegistry/AssetData.h" |
UObject * GetAsset
(
TSet< FName > LoadTags
) const
Parameters
| Name | Remarks |
|---|---|
| LoadTags | (optional) allows passing specific tags to the linker when loading the asset ( |
See Also
- ULevel::LoadAllExternalObjectsTag for an example usage)