RealDocs

UAssetManager::RecursivelyExpandBundleData

function Engine Since unknown
#include "Engine/AssetManager.h"
Access: public Specifiers: virtualconst

Description

Expands references inside the given bundle data that point at other primary assets' bundles, pulling their contents in recursively. Used to preload an entire web of interdependent assets in one call.

Caveats & Gotchas

  • Modifies BundleData in place — pass a copy if you need to keep the original, unexpanded bundle references around.
  • No cycle detection is documented; a bundle reference chain that loops back on itself can cause runaway recursion.

Signature

virtual void RecursivelyExpandBundleData(FAssetBundleData& BundleData) const;

Parameters

Name Type Description Default
BundleData FAssetBundleData& Bundle data to expand in place; references to other primary assets' bundles are replaced with their contents.

Return Type

void

Example

Expanding bundle references before preloading C++
FAssetBundleData BundleData = GetBundleDataForAsset(SomeAssetId);
UAssetManager::Get().RecursivelyExpandBundleData(BundleData);
// BundleData now also contains entries pulled in from referenced primary assets' bundles

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.