Hi, I am begginer in the forum but i have a problem with the name of my enum variables.
I have a Enum that have:
enum Stats{streng, agility, stamina}
when i draw my custom inspector with Enum Popup, the popup write the varibles with capital Letters:
Streng.
Agility
Stamina.
How to change the name of the enum variables to Lowercase?
I wanna this:
streng
agility
stamina
Thanks and sorry for my english is so bad.
Unity automatically “nicefies” enum names and other names in the inspector (making them look nicer and more friendly).
If you want to show your enum in some other way, you’ll have to create an inspector (or a property drawer) of your own.
Now unity supported, look this: Unity - Scripting API: InspectorNameAttribute
5 Likes