Editor.OnSceneGUI Manual     Reference     Scripting  
Scripting > Editor Classes > Editor

function OnSceneGUI () : void


Lets the Editor handle an event in the scene view.

In the OnSceneGUI you can do eg. mesh editing, terrain painting or advanced gizmos If call Event.current.Use(), the event will be "eaten" by the editor and not be used by the scene view itself.