# maxSize

> Maximum size of the Overlay.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.Overlays](/engine/6000.5/script-reference/unityeditor/overlays.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public Vector2 maxSize { get; set; }
```

### Remarks

Overlays can be resized. The maxSize variable is the maximum width and height that the Overlay can be resized. This is typically a Vector2(4000,4000). If the axis of both the minSize and maxSize are set to 0, resizing is disabled for that axis.
