RealDocs

UKismetSystemLibrary::GetCurrentBundleState

function Engine Blueprint Since unknown
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintCallable

Description

Returns the list of loaded bundles for a given Primary Asset. Returns false if the asset is not loaded at all.

Caveats & Gotchas

  • With bForceCurrentState false, the returned bundle list reflects the last completed load, not any in-progress bundle change — useful for avoiding races when checking state mid-stream.
  • Returns false (and an empty OutBundles) whenever the base asset itself isn't loaded, even if bundle data would otherwise be available.

Signature

static bool GetCurrentBundleState(FPrimaryAssetId PrimaryAssetId, bool bForceCurrentState, TArray<FName>& OutBundles)

Parameters

Name Type Description Default
PrimaryAssetId FPrimaryAssetId The Primary Asset to query.
bForceCurrentState bool If true, returns the current state even if a load for this asset is in progress; if false, returns the last completed state.
OutBundles TArray<FName>& Filled with the names of bundles currently loaded for this asset.

Return Type

bool

Example

Check which bundles are loaded C++
TArray<FName> LoadedBundles;
bool bIsLoaded = UKismetSystemLibrary::GetCurrentBundleState(AssetId, /*bForceCurrentState=*/true, LoadedBundles);
if (bIsLoaded && LoadedBundles.Contains(FName("UI")))
{
	// UI bundle data is ready
}

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.