Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/IAssetRegistry
Description
Gets asset data for the assets in the package with the specified package name
| Name | GetAssetsByPackageName |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h |
| Include Path | #include "AssetRegistry/IAssetRegistry.h" |
UFUNCTION (BlueprintCallable, BlueprintPure=false, Category="AssetRegistry")
bool GetAssetsByPackageName
(
FName PackageName,
TArray< FAssetData > & OutAssetData,
bool bIncludeOnlyOnDiskAssets,
bool bSkipARFilteredAssets
) const
Parameters
| Name | Remarks |
|---|---|
| PackageName | the package name for the requested assets (eg, /Game/MyFolder/MyAsset) |
| OutAssetData | the list of assets in this path |
| 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.