Manual     Reference     Scripting  
  
Scripting > Editor Classes > Editor   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • Editor
  • All Members
  • Variables
  • target
  • Functions
  • DrawDefaultInspector
  • OnInspectorGUI
  • Repaint
  • Messages Sent
  • OnSceneGUI
  • Inherited Variables
  • hideFlags
  • name
  • Inherited Functions
  • GetInstanceID
  • Inherited Messages Sent
  • OnDisable
  • OnEnable
  • Inherited Class Functions
  • CreateInstance
  • Destroy
  • DestroyImmediate
  • DontDestroyOnLoad
  • FindObjectOfType
  • FindObjectsOfType
  • Instantiate
  • operator !=
  • operator ==
  • operator bool

Editor.OnSceneGUI  

function OnSceneGUI () : void

Description

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.