UAssetManager::GetPrimaryAssetsWithBundleState

Returns a list of primary assets that are in the given bundle state.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h

Include

#include "Engine/AssetManager.h"

Source

/Engine/Source/Runtime/Engine/Private/AssetManager.cpp

Syntax

bool GetPrimaryAssetsWithBundleState
(
    TArray< FPrimaryAssetId > & PrimaryAssetList,
    const TArray< FPrimaryAssetType > & ValidTypes,
    const TArray< FName > & RequiredBundles,
    const TArray< FName > & ExcludedBundles,
    bool bForceCurrent
) const

Remarks

Returns a list of primary assets that are in the given bundle state. Only assets that are loaded or being loaded are valid

Returns

True if any found

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss