Get String from Enum.NormalId?

Is there a way to get a string from a NormalId?

When given Enum.NormalId.Right, the script should output "Right".
When given Enum.NormalId.Top, the script should output "Top", and so on.

Any help would be appreciated, thanks.

2 Likes

You can use EnumItem.Name. For example, Enum.NormalId.Right.Name.

2 Likes

Wow, I never knew that Enums had that property. This would be very useful in other cases too, thank you so much!

2 Likes