NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

[Request] Colouring variables in the inspector

Open TheEmbracedOne opened this issue 2 years ago • 2 comments

This is a "nice to have" and I'm not sure if this is possible with other tools, but it'd be great if I could somehow colour variables for the inspector either via rgb or hex values:

public class NaughtyComponent : MonoBehaviour {    
    [Color("#123456")]
    public string thisIsAVariable;

    [Color("255,0,102")]
    public Vector3 vectorXYZ;
}

would make: Example (there's a tool I use that colours the transform values similarly, it colours the field not just the variable's name, but that's also fine)

Thank you for your consideration.

TheEmbracedOne avatar Jun 03 '22 00:06 TheEmbracedOne