Enum to name is Broken

anonymous_user_fbe5155f
Thu, 27 Aug 2015 05:48:02 +0000
Community & Industry Discussion

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.

Thanks.

41 posts - 34 participants