# OnGUI(Rect)

> Override this method to make your own GUI for the decorator. See DecoratorDrawer for an example of how to use this.

## Definition

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

```csharp
public virtual void OnGUI(Rect position)
```

### Parameters

**** (\[Rect]\(/engine/6000.3/script-reference/unityengine/rect)): Rectangle on the screen to use for the decorator GUI.
