Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/FAssetRegistryState
Description
Enumerate asset data for all assets that match the filter. Assets returned must satisfy every filter component if there is at least one element in the component's array. Assets will satisfy a component if they match any of the elements in it.
| Name | EnumerateAssets |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/AssetRegistryState.h |
| Include Path | #include "AssetRegistry/AssetRegistryState.h" |
| Source | /Engine/Source/Runtime/AssetRegistry/Private/AssetRegistryState.cpp |
bool EnumerateAssets
(
const FARCompiledFilter & Filter,
const TSet< FName > & PackageNamesToSkip,
TFunctionRef < bool> Callback,
EEnumerateAssetsFlags InEnumerateFlags
) const
Parameters
| Name | Remarks |
|---|---|
| Filter | filter to apply to the assets in the AssetRegistry |
| PackageNamesToSkip | explicit list of packages to skip, because they were already added |
| Callback | function to call for each asset data enumerated |
| InEnumerateFlags | flags to control enumeration and filtering. Note that the default does not include AllowUnmountedPaths; they will be skipped by default. |
See Also
- EEnumerateAssetsFlags.