RealDocs

UAssetManager::GetAssetRegistry

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

Description

Returns the asset registry instance used by this asset manager, avoiding a separate module lookup.

Caveats & Gotchas

  • Returns a reference, but the underlying registry can still be mid-scan — check IAssetRegistry::IsLoadingAssets() before assuming results are complete.
  • Prefer this over calling IAssetRegistry::Get() directly when you already hold a UAssetManager reference, since it skips the module manager lookup.

Signature

IAssetRegistry& GetAssetRegistry() const

Return Type

IAssetRegistry&

Example

Query the registry directly C++
IAssetRegistry& Registry = UAssetManager::Get().GetAssetRegistry();
TArray<FAssetData> Assets;
Registry.GetAssetsByPath(FName(TEXT("/Game/Characters")), Assets, true);

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.