Please, could it be possible with some of the next Unity releases to have more visible lables for each component attached to a GameObject (maybe in blue/red, whatever color you like) ?
It would be very helpful when a component (script) has a lot of variables, and actually when you scroll up/down you can’t figure quickly where some component start/end
Many thanks
It looks component titles in the inspector window support rich text tags, so it is possible to change their color and font size by modifying the titles in the internal dictionary that the inspector uses.
<size=14><color=#64c9ff>Transform</color></size>
<size=14><color="yellow">Light</color></size>
<size=14><color=#b1fd59>Box Collider</color></size>
I tested if it’s possible to use rich text tags with the AddComponentMenu attribute.
using UnityEngine;
[AddComponentMenu("Test/<size=14><color=#64c9ff>Colored Name</color></size>")]
public class ColoredName : MonoBehaviour { }
But alas, it’s not…
Still, with the help of some reflection, it looks like something like this is doable.
1 Like