Color
Changes the color of a property. If the property already has a color, it will be replaced.

[Color(1f, 0.5f, 0.5f)]
public int importantValue;[Color(float r,float g,float b)]r: The red component of the background color, ranging from 0 to 1.
g: The green component of the background color, ranging from 0 to 1.
b: The blue component of the background color, ranging from 0 to 1.
Last updated