RealDocs

UAssetManager::GetPrimaryAssetTypeInfoList

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

Description

Gets the list of metadata for every primary asset type currently registered with the asset manager.

Caveats & Gotchas

  • Unlike most other directory queries here, this has no bool return — the list is simply empty if nothing is registered yet.
  • Useful for building editor tooling (e.g. an asset audit window) that needs to iterate every configured type without knowing their names in advance.

Signature

virtual void GetPrimaryAssetTypeInfoList(TArray<FPrimaryAssetTypeInfo>& AssetTypeInfoList) const;

Parameters

Name Type Description Default
AssetTypeInfoList TArray<FPrimaryAssetTypeInfo>& Out array filled with metadata for every registered primary asset type.

Return Type

void

Example

List all registered types C++
TArray<FPrimaryAssetTypeInfo> Types;
UAssetManager::Get().GetPrimaryAssetTypeInfoList(Types);
for (const FPrimaryAssetTypeInfo& TypeInfo : Types)
{
	UE_LOG(LogTemp, Log, TEXT("Type: %s"), *TypeInfo.PrimaryAssetType.ToString());
}

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.