Search Unity

How to Change the name of Enum variables in inspector

Discussion in 'Editor & General Support' started by fjlafarga, Aug 8, 2015.

  1. fjlafarga

    fjlafarga

    Joined:
    Jun 24, 2015
    Posts:
    4
    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.
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    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.
     
  3. BlackFuse

    BlackFuse

    Joined:
    Jun 28, 2019
    Posts:
    1