UEnum::GetDisplayNameTextByIndex

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss