# beforeSceneGui

> The event issued when the OnGUI method is called.

## Definition

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

```csharp
public static event Action<SceneView> beforeSceneGui
```

### Remarks

Use this callback to queue meshes for rendering in the Scene view. To implement handles, tools, and UI, use [SceneView.duringSceneGui](/engine/6000.3/script-reference/unityeditor/sceneview/duringscenegui.md).
