UEnum::GetDisplayNameTextByIndex

Finds the localized display name or native display name as a fallback.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UEnum::GetDisplayNameTextByIndex()

UUserDefinedEnum::GetDisplayNameTextByIndex()

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h

Include

#include "UObject/Class.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Enum.cpp

Syntax

virtual FText GetDisplayNameTextByIndex
(
    int32 InIndex
) const

Remarks

Finds the localized display name or native display name as a fallback. If called from a cooked build this will normally return the short name as Metadata is not available.

Returns

The display name for this object, or an empty text if Index is invalid

Parameters

Parameter

Description

InIndex

Index of the enum value to get Display Name for