# GetWindowSize()

> The size of the popup window.

## Definition

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

```csharp
public virtual Vector2 GetWindowSize()
```

### Returns

| Type                                                              | Description                   |
| ----------------------------------------------------------------- | ----------------------------- |
| [Vector2](/engine/6000.7/script-reference/unityengine/vector2.md) | The size of the Popup window. |

### Remarks

Implement this method only when not using [PopupWindowContent.CreateGUI()](/engine/6000.7/script-reference/unityeditor/popupwindowcontent/creategui.md) to provide the content of the popup.

Additional Resources: [PopupWindow](/engine/6000.7/script-reference/unityeditor/popupwindow.md) with full example.
