Custom enums' ForEach and ByteToEnum are broken

The For Each loop and Byte To Enum function return weird things.

My enum:

55180-myenum.png

Blueprint:

Output for ForEach:

  • None
  • None
  • Name1
  • None
  • Name2

The same outputs happen with the Byte To Enum, depending on what byte you put in.

Enums that already exist in the engine seem to be fine.

I noticed in the known issues list: UE-19528 Custom Enums break blueprints on hot reload. However this bug happens on a newly loaded project as well.

UE4.9 Preview 4

Hi Requios,

Thank you for the report. I was easily able to reproduce this issue and I’ve created JIRA UE-20265. Our developers will be investigating the issue further and we will post back here with updates.

You may not need one because you are testing in 4.9 but as a workaround you can create an Array Variable for the Enum and run that through a ForEachLoop.

Cheers,

TJ

Hi Requios,

Just letting you know that this has been fixed internally. You will see it working properly in a future update.

Cheers,

TJ

Great news :slight_smile:
Thanks a bunch!

Yay :slight_smile: I hope that fixes the enum replication issue as well that I worked around with byte replication and if branching for now :slight_smile:
Thx for debugging :slight_smile: