x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Get display name from enum

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:

alt text

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

alt text

Product Version: UE 4.21
Tags:
more ▼

asked Jun 10 '19 at 11:29 PM in Blueprint Scripting

avatar image

TorQueMoD
1.2k 88 116 146

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Jun 11 '19 at 12:04 AM

avatar image

KristofMorva
1.4k 5 5 7

avatar image TorQueMoD Jun 11 '19 at 05:51 AM

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

avatar image Everynone Jun 11 '19 at 10:25 AM

alt text

untitled.png (19.6 kB)
avatar image TorQueMoD Jun 11 '19 at 05:11 PM

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 :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question