- Home /
How can I change the color of the camera border in the editor?
I want to change the camera border color (and preferably width too), so that I can see the camera bounds better. It's really hard for me to see with white on gray. Here's an image explaining what I want to do:
Thank you!
Answer by LCStark · Sep 30, 2018 at 11:14 AM
Use the OnDrawGizmos or OnDrawGizmosSelected method. You can change the color with Gizmos.color
. As for the thickness, check answer to this question: https://answers.unity.com/questions/1139985/gizmosdrawline-thickens.html
Answer by inedria · Mar 06 at 08:59 AM
Sorry for the necro, but it looks like this is what I'm trying to do - I'm new to Unity so apologies if I'm missing something obvious.
I just need to change the camera bounding box color in the Editor, Scene Window. The near white lines don't have enough contrast for my eyes, so I wanted to change the rectangle color to magenta.
Reading the reply from 2018, I figured I could just change the Gizmo color, attach the script to my MainCamera, and be done. However, it doesn't seem to change the color of anything. I can see the script is being called (frequently) by adding a Debug.Log line.
So, any pointers on what I'm missing please?