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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
4 People are following this question.
Gizmo wont change color in certain project
Changing two different objects renderer colour
Material doesn't have a color property '_Color'
Burning object, making it appear gradually black
Set Gizmo colors to multiple Gizmos