Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/IAssetRegistry
Description
Gets asset data for all assets in the supplied folder path
| Name | GetAssetsByPath |
| 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 GetAssetsByPath
(
FName PackagePath,
TArray< FAssetData > & OutAssetData,
bool bRecursive,
bool bIncludeOnlyOnDiskAssets
) const
Parameters
| Name | Remarks |
|---|---|
| PackagePath | the path to query asset data in (eg, /Game/MyFolder) |
| OutAssetData | the list of assets in this path |
| bIncludeOnlyOnDiskAssets | If true, use only DiskGatheredData, do not calculate from UObjects. |
| bRecursive | if true, all supplied paths will be searched recursively |
See Also
- IAssetRegistry class header for bIncludeOnlyOnDiskAssets.