Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


duringSceneGui

Subscribe to this event to receive a callback whenever the Scene view calls the OnGUI method.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Event
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static event Action<SceneView> duringSceneGui

Remarks

Use this event to implement custom handles and user interface. If you want to draw elements in the Scene view, for instance by using
Graphics.DrawMeshNow
, only do so during EventType.Repaint.