Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAssetManager
Description
Returns a list of primary assets that are in the given bundle state. Only assets that are loaded or being loaded are valid
| Name | GetPrimaryAssetsWithBundleState |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h |
| Include Path | #include "Engine/AssetManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AssetManager.cpp |
bool GetPrimaryAssetsWithBundleState
(
TArray < FPrimaryAssetId > & PrimaryAssetList,
const TArray < FPrimaryAssetType > & ValidTypes,
const TArray < FName > & RequiredBundles,
const TArray < FName > & ExcludedBundles,
bool bForceCurrent
) const
True if any found
Parameters
| Name | Remarks |
|---|---|
| PrimaryAssetList | Any valid assets are added to this list |
| ValidTypes | List of types that are allowed. If empty, all types allowed |
| RequiredBundles | Adds to list if the bundle state has all of these bundles. If empty will return all loaded |
| ExcludedBundles | Doesn't add if the bundle state has any of these bundles |
| bForceCurrent | If true, only use the current state. If false, use the current or pending |