Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h |
Include |
#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
Returns a list of primary assets that are in the given bundle state. Only assets that are loaded or being loaded are valid
True if any found
Parameter |
Description |
---|---|
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 |