- Home /
Drawing a regular gui in Scene view
I wish to draw a GUI in the Scene view. By this I mean using GUI.Box to show text, etc. I've tried using OnDrawGizmos and the Gizmos class already but Boxes and buttons don't seem to show up no matter how many things I try. Is there a way to do this?
I apologize if this is obvious but I've looked around in quite a few places and haven't found a way to do this despite having read a lot tutorials regarding Editor and inspector and programmed a few implementations myself.
Certain configurations of GUI.Box have displayed a white box at 20% opacity (for some reason) so I'm still hoping there's a way but I'm missing something.
Answer by hvilela · Sep 28, 2012 at 08:55 PM
You can't use GUI in any method other than OnGUI. Check Unity Documentation.
I was mainly asking if there was a way to get an OnGUI equivalent for the scene view.