Enumeration stops working if printed as string

My switch doesn’t work like expected because the enumerator looses its value if it is first printed as a string to the screen.

The enumerator is printed as a string by casting it to a string, then appended with various data and manually written strings to form the debug text.

The switch also doesn’t throw any errors. It simply directs the flow to the last entry in the switch, treating that entry as a default value (intended by design?).

The switch and enumerator work like intended as soon as I remove the “print string” node from the flow.

Hi,

  • Does this occur in a clean, blank project with no additional content or is it limited to one project?
  • What engine version are you currently working in?
  • What steps can I take to reproduce this on my end?
  • What are you populating your enum with?

I haven’t had the time needed to investigate this further. Had to move on and got the actual blueprint to work but…

  • Didn’t have the time to create a new project.
  • I am currently using 4.10.4
  • Will update if I get around to investigate this further.
  • The enum only got two states at the moment that symbolizes width and depth (maybe thinking of a struct?).

The thing is, I found that I had a mistake in my equation. I solved that and the Blueprint started working like expected but! A blueprint shouldn’t behave differently if I add a “print string” node do the flow of the graph.

HI,

Have you had any further trouble out of your Enum value? If so, have you found a set of repro steps I can take to reproduce this error on my end?

Hi,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.