Search Unity

Feedback None (Type) Indicator in Inspector

Discussion in 'Editor Workflows' started by Kellyrayj, Mar 22, 2019.

  1. Kellyrayj

    Kellyrayj

    Joined:
    Aug 29, 2011
    Posts:
    936
    Happy Friday friends!

    Had a thought about the inspector. I tend to forget to place my objects/components into their respective slots after I switch from coding back to the editor leading to silly null errors.

    It'd be grand it I could look at the component variables at a glance and know that something potentially empty. When you have tons of variables, the None (Type) text is lost among all of the list. A simple change of color could indicate that it's empty.

    Screen Shot 2019-03-22 at 4.44.41 PM.png

    All the best!
     
    Jick87 likes this.
  2. pointcache

    pointcache

    Joined:
    Sep 22, 2012
    Posts:
    579
    Grey color is usually reserved for disabled ui elements. I would opt for some icon, like orange exclamation mark. On the other hand it would annoy people who leave those fields to be populated at runtime. So ideally i would make an attribute that would indicate that this reference should be assigned at edit time, and with that attribute the field would draw some orange or red color.
     
    DGordon likes this.