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.

55975-row+not+found.png

Thanks.

2 Likes

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

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

Hi ,

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.

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

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.

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 …

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

Still a bug on 4.12.2

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.

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

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

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

4.14 stil the same…

Still a bug in 4.15.1

Still a bug in 4.18! Please fix.

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

Also that issue number does not work

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

4.20.1 UnitTypeEnum::NewEnumerator1