# PopupWindowContent

> Class used to implement content for a popup window.

## Definition

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

```csharp
public abstract class PopupWindowContent
```

## Remarks

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

## Properties

| Property                                                                                       | Description                                                                                                      |
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [editorWindow](/engine/6000.5/script-reference/unityeditor/popupwindowcontent/editorwindow.md) | The [EditorWindow](/engine/6000.5/script-reference/unityeditor/editorwindow.md) that contains the popup content. |

## Methods

| Method                                                                                           | Description                                             |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
| [CreateGUI](/engine/6000.5/script-reference/unityeditor/popupwindowcontent/creategui.md)         | Creates custom GUI with UI Toolkit for the popup.       |
| [GetWindowSize](/engine/6000.5/script-reference/unityeditor/popupwindowcontent/getwindowsize.md) | The size of the popup window.                           |
| [OnClose](/engine/6000.5/script-reference/unityeditor/popupwindowcontent/onclose.md)             | Callback when the popup window is closed.               |
| [OnGUI](/engine/6000.5/script-reference/unityeditor/popupwindowcontent/ongui.md)                 | Callback for drawing GUI controls for the popup window. |
| [OnOpen](/engine/6000.5/script-reference/unityeditor/popupwindowcontent/onopen.md)               | Callback when the popup window is opened.               |
