UAssetManager::GetAssetRegistry
#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); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?