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"

Enum to name is Broken

In a Constructor - this won't work:

  • Drag out of enum,

  • pass to Get Data Table Row (Row Name)

Observe: a Enum to Name converter will be automatically inserted.

Expected: the row name to get the friendly name of the Enum.

Actual: it gets a name such as this UnitTypeEnum::NewEnumerator2


However this will work:

  • Drag out of enum,

  • type enum,

  • select "enum to string"

  • drag string to Get Data Table Row (Row Name)

Observe: a String to Name converter will be automatically inserted.

Row will be found as expected.


Conclusion

  • Enum to Name is BROKEN and gives UnitTypeEnum::NewEnumerator2.

  • Enum to String then converted to Name works as expected.

This caught me more than once, and it's hard to find out in Constructors.

alt text

alt text

Thanks.

Product Version: UE 4.8
Tags:
row not found.png (77.0 kB)
row found.png (79.5 kB)
more ▼

asked Aug 27 '15 at 05:48 AM in Bug Reports

avatar image

keyle
1.8k 66 27 90

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

13 answers: sort voted first

I think this is a known issue.

As a workaround, you can cast the enum to string, then cast that to name. This will return the reader-friendly name. (At least that's how it works in-game. I see no reason why it would be different in the construction script.)

more ▼

answered Aug 27 '15 at 07:53 AM

avatar image

erinacea
1.8k 69 28 114

avatar image keyle Aug 27 '15 at 09:14 AM

Yeah I'm aware of the work around thanks. Is it fixed in 4.9?

avatar image Elendil Nov 27 '15 at 12:39 AM

I always have this bug on 4.10. And in a function the workaround does not seem to work. It works only if you pass your variable in a litteral enum ...

avatar image MatzeOGH Jul 12 '16 at 01:23 PM

What does it take to fix the issue ourselfs. I just crashed head first into it.

avatar image Sean L ♦♦ STAFF Jul 12 '16 at 03:12 PM

In the meantime, until this issue is resolved, you can try the workaround that erinacea has suggested. This issue is still being investigated; however, there is currently no timeline for when a fix will be released.

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

Still a bug in 4.18! Please fix.

more ▼

answered Nov 14 '17 at 06:43 AM

avatar image

Phyro
48 2 3 5

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

Hi keyle,

This is a known issue and is in our system as UE-14117. Unfortunately I do not have a timeframe of when a fix will be made available.

more ▼

answered Aug 27 '15 at 05:05 PM

avatar image keyle Aug 28 '15 at 12:49 PM

Thanks Adam. Can we get any visibility at all on your Jira?

avatar image Adam Davis STAFF Aug 28 '15 at 02:40 PM

At present we do not have a public bug tracker. If you'd like an update, please post here and I'll be happy to let you know the status of the bug.

avatar image DanaFo Apr 30 '16 at 11:38 PM

This just cost me a half hour today, grr (4.10.4). Glad to know there's a workaround.

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

4.20.1 UnitTypeEnum::NewEnumerator1

more ▼

answered Aug 06 '18 at 04:38 PM

avatar image

MacielKore
6 1 3

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

Still broken in 40.20.1

I'm well aware that there is a workaround.

It just seems a bit tardy that 12 "stable" releases later and a basic type converion is STILL not implemetned. Simply remove the node entirely if nobody is going to bother to fix it, at least that way blueprint developers won't be led astray when their data table references are failing inexplicably.

more ▼

answered Aug 18 '18 at 11:56 AM

avatar image

Wobbleyheadedbob
68 6 9 8

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

Still a bug on 4.12.2

more ▼

answered Jun 10 '16 at 08:18 AM

avatar image

Macw0lf
71 2 8 10

avatar image Adam Davis STAFF Jun 10 '16 at 03:57 PM

Hi Macw0lf,

I just looked into this bug and it is still under assessment by the development staff. I have updated the report to reflect that additional developers are experiencing this error, however I do not have a timeframe of when a fix will be implemented.

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

how would you do enum to FName in C++?

more ▼

answered Nov 04 '16 at 02:11 AM

avatar image

JKDev
31 3 6 8

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

4.14 stil the same..

more ▼

answered Jan 16 '17 at 12:55 PM

avatar image

Axxi
31 1 3 4

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

Still a bug in 4.15.1

more ▼

answered Mar 26 '17 at 03:24 AM

avatar image

borbs727
34 4 9 14

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

Jeez...just ran into this bug just now...I was like wtf is going on...

more ▼

answered Dec 01 '17 at 02:24 AM

avatar image

VictorBurgos
2.4k 61 27 113

avatar image VictorBurgos Dec 01 '17 at 02:25 AM

Also that issue number does not work

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

With 4.18 the workaround don't work, to string return 1 To text return 1 to name return UnitTypeEnum::NewEnumerator1

more ▼

answered Apr 19 '18 at 06:48 AM

avatar image

DomusLudus
6 2 5 6

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

Sorry, using to string will show the correct enum name

more ▼

answered Aug 06 '18 at 04:42 PM

avatar image

MacielKore
6 1 3

avatar image cruzncreations Jan 18 '19 at 06:55 PM

Using 4.20.3 , spent a bit figuring out why my blueprints weren't working. Seems "Enum to name" wasn't working. The "Emun to string to name" work around still works!

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

Still a bug in 4.21.2! Please fix.

more ▼

answered Apr 26 '19 at 05:00 AM

avatar image

popple
11 1 2 3

(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