Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/IAssetRegistry
Description
Gets the asset data for the specified object path
| Name | K2_GetAssetByObjectPath |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h |
| Include Path | #include "AssetRegistry/IAssetRegistry.h" |
| Source | /Engine/Source/Runtime/AssetRegistry/Private/AssetRegistry.cpp |
UFUNCTION (BlueprintCallable, BlueprintPure=false, Category="AssetRegistry",
DisplayName="Get Asset By Object Path")
virtual FAssetData K2_GetAssetByObjectPath
(
const FSoftObjectPath & ObjectPath,
bool bIncludeOnlyOnDiskAssets,
bool bSkipARFilteredAssets
) const
the assets data;Will be invalid if object could not be found
Parameters
| Name | Remarks |
|---|---|
| ObjectPath | the path of the object to be looked up |
| bIncludeOnlyOnDiskAssets | If true, use only DiskGatheredData, do not calculate from UObjects. |
| bSkipARFilteredAssets | If true, skips Objects that return true for IsAsset but are not assets in the current platform. |
See Also
- IAssetRegistry class header for bIncludeOnlyOnDiskAssets.