# OnGUI(Rect, float)

> Render and handle input for the MultiColumnHeader at the given rect.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.5/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public virtual void OnGUI(Rect rect, float xScroll)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rect where the MultiColumnHeader is drawn in.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Horizontal scroll offset.

### Remarks

If the given `xScroll` is not 0 then the column headers will be scrolled but still clipped to the given Rect. This method can be overriden for complete custom behavior and rendering. For custom handling of indivdual column headers then see [MultiColumnHeader.ColumnHeaderGUI](/engine/6000.5/script-reference/unityeditor/imgui/controls/multicolumnheader/columnheadergui.md).
