- Home /
Why are my gizmos so dark?
Whenever I draw gizmos of any color, they always appear a lot darker than they should be. I have tried adjusting all settings I could find to do with color with no luck. Lighting doesn't affect gizmos, so it's not that either.
As an example, I set the color to white and draw a cube using Gizmos.drawCube()
and this is the result:
Is this really a problem or am i just being stupid?
Answer by Incarnadine · Aug 31, 2015 at 01:05 AM
Gizmos seem to be drawing at half color intensity. I'm surprised, but doubling the color value fixed it.
Gizmos.color = new Color(2f, 2f, 2f);
Doubling the color values also worked for me, although I had to switch from Color32 to Color (Color32 uses bytes, so uses values in 0-255 only). Unity seems to be adding an artificial directional light that depends on the scene view camera angle (independently for each Scene view) for the Gizmos to help 3D shape visualization. I guess it's where they multiply the color by 0.5f or less.
2D gizmos such as icons or lines are fine.