I've got some lines that I'm rendering using the GL.* functions (I need to do this because I need the lines that I'm rendering to be depth tested). However, I'd like these lines to respect the "gizmos" option on the game view so I can use that to turn them on/off.
Is there any way to find out whether or not this button is pressed?
asked Jan 06 '11 at 05:01 PM
Well, here's one way:
Of course, it could break if Unity changes, but it works in 3.1, and shouldn't go horribly wrong if the relevant private field is removed.
answered Jan 06 '11 at 05:34 PM