RealDocs

UAssetManager::IsInitialized

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

Description

Returns true once the global AssetManager singleton has been constructed. Use this instead of calling Get() blindly during very early engine startup.

Caveats & Gotchas

  • Replaces the deprecated static IsValid() — IsValid() always effectively returned true in modern engine versions since the AssetManager is now constructed during UEngine::InitializeObjectReferences.
  • Almost always true by the time gameplay code runs; this mainly guards very early engine startup or teardown code paths, not normal game logic.

Signature

static bool IsInitialized();

Return Type

bool

Example

Guarding an early-startup asset query C++
if (UAssetManager::IsInitialized())
{
	TArray<FPrimaryAssetId> FoundIds;
	UAssetManager::Get().GetPrimaryAssetIdList(FPrimaryAssetType("Item"), FoundIds);
}

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.