RealDocs

UKismetSystemLibrary::GetEnumTopLevelAssetPath

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

Description

Returns the full path to the specified enum as an FTopLevelAssetPath, used by asset utilities and reflection systems that need a stable identifier for a UENUM.

Caveats & Gotchas

  • Blueprint DisplayName is "Get Enum Path Name (Top Level Asset Path)".
  • Works for both C++ UENUM() enums and Blueprint-defined enum assets, but the returned path format differs (native enums use the module's script package).
  • Returns an invalid path if Enum is null.

Signature

static FTopLevelAssetPath GetEnumTopLevelAssetPath(const UEnum* Enum)

Parameters

Name Type Description Default
Enum const UEnum* The enum to get the path name of.

Return Type

FTopLevelAssetPath

Example

Get a stable identifier for an enum C++
FTopLevelAssetPath EnumPath = UKismetSystemLibrary::GetEnumTopLevelAssetPath(StaticEnum<EMyGameState>());
UE_LOG(LogTemp, Log, TEXT("Enum path: %s"), *EnumPath.ToString());

Version History

Introduced in: 5.1

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.