# duringSceneGui

> Subscribe to this event to receive a callback whenever the Scene view calls the OnGUI method.

## Definition

* **Type:** Event
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
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](/engine/6000.0/script-reference/unityengine/eventtype/repaint.md).
