# onGUIHandler

> The function that's called to render and handle IMGUI events.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public Action onGUIHandler { get; set; }
```

### Remarks

This is assigned to onGUIHandler and is similar to [MonoBehaviour.OnGUI()](/engine/6000.5/script-reference/unityengine/monobehaviour/ongui.md).
