# Get display name from enum

**URL:** <https://forums.unrealengine.com/t/get-display-name-from-enum/450455>\
**Category:** UI\
**Tags:** ENUM, unreal-engine, Widget, question\
**Created:** [June 10, 2019, 11:29pm UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455 "2019-06-10T23:29:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [June 10, 2019, 11:29pm UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/1 "2019-06-10T23:29:17Z")

</div>

Is it not possible to get the display name from an enum? I’m trying to use the enumerator as a place to store values about the character, Hair Color, Eye Color etc. and then I want to simply get the chosen value and display it to a widget but it seems that it’s not possible to get the display name from an enum which is really weird.

This is my enumerator:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/7/2177aac19cb3e9280ead46d554c8b57e5c639c62.jpeg)

And when I try to get display name there are no options:

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/2/b9206757174019e5f1cffba3c8fae4dc480aa5ec.jpeg)

---

<div class="post-metadata">

**Author:** ![KristofMorva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kristofmorva/32/1194508_2.png) [@KristofMorva](https://forums.unrealengine.com/u/KristofMorva)\
**Post date:** [June 11, 2019, 12:04am UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/2 "2019-06-11T00:04:07Z")

</div>

You can simply cast it to string, that’ll result in the name you set in the enumeration editor.

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [June 11, 2019, 5:51am UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/3 "2019-06-11T05:51:40Z")

</div>

Thanks for the suggestion. I tried converting it to a string and it wouldn’t. It said it was incompatible.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 11, 2019, 10:25am UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/4 "2019-06-11T10:25:12Z")

</div>

![279465-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/a/6faf6d5bbde81bd932551bfdf3135605f2ad781c.png)

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [June 11, 2019, 5:11pm UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/5 "2019-06-11T17:11:40Z")

</div>

Ahh that’s what happened. I tried to plug it directly into the Text portion of my widget and it gave an incompatible error. Converting to string and then to text fixed the issue. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![Martyn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Martyn](https://forums.unrealengine.com/u/Martyn)\
**Post date:** [August 5, 2020, 8:29pm UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/6 "2020-08-05T20:29:08Z")

</div>

This doesn’t solve the issue if you want FText returned as a type for localisation purposes.

---

<div class="post-metadata">

**Author:** ![Sinestrus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sinestrus](https://forums.unrealengine.com/u/Sinestrus)\
**Post date:** [June 28, 2021, 8:59am UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/7 "2021-06-28T08:59:56Z")

</div>

SOLVED THIS ONE  
I wanted to use a list I made in an enumerator (text only) and then use those values for socket names.

When in the blueprint and having access to the enumerator value I chose, I needed to:

1. take the enumerator value
2. convert it to a string
3. convert the string to a name

It was the middle step (#2) that was the key.

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [April 5, 2025, 11:02pm UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/8 "2025-04-05T23:02:03Z")

</div>

_\> FText → FString is dangerous as it is a potentially lossy conversion for some languages._

> **[String Handling in Unreal Engine | Unreal Engine 5.5 Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/unreal-engine/string-handling-in-unreal-engine)**
>
> An overview of the string classes available in Unreal Engine with reference guides for FName, FText, and FString

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [April 5, 2025, 11:03pm UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/9 "2025-04-05T23:03:09Z")

</div>

Welcome to the party. Only 11 months late. Not bad 😄

---

<div class="post-metadata">

**Author:** ![o-super](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/o-super/32/538714_2.png) [@o-super](https://forums.unrealengine.com/u/o-super)\
**Post date:** [July 5, 2025, 5:01am UTC](https://forums.unrealengine.com/t/get-display-name-from-enum/450455/10 "2025-07-05T05:01:46Z")

</div>

This is an old post but maybe it will help someone in the same situation.

When it comes to localization using ToString from an enum is of no help.

In the localization Dashboard there is an option to import Meta Data of Type Enum (from your C++ Code), however this is working in Editor only.

So the only viable option is to create a mapping between your Enums and a FText stored in a DataTable.

1 - For example you have a an Enum EClassType, which contains UMETA(DisplayName = “Warrior”) and UMETA(DisplayName = “Mage”).  
2 - Create a Struct in Blueprint, name it S\_DisplayName, the struct will contain a FText LocName.  
3 - Now create a new Data Table, DT\_ClassTypeNames based on the struct S\_DisplayName.  
As row name set the value to match the DisplayName set in your Enum (UMETA ).  
As LocName set the name you want to be translated.  
4 - Now in your UMG (or wherever you need to get the translated version of your Enum) from the Enum value → ToString → Get Data Table Row (DT\_ClassTypeNames)  
5 - Pass the ToString value as argument RowName of the Get Data Table Row Node, this will output a struct containing your LocName, which will translate.

Example:

In this case I use it for the EquipmentType Enum value:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/6/b16b1c4a29dd8a962d0e20e9555c7a6da6199e99.jpeg)
