# CreateGUI()

> Creates custom GUI with UI Toolkit for the popup.

## Definition

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

```csharp
public virtual VisualElement CreateGUI()
```

### Returns

| Type                                                                                     | Description                            |
| ---------------------------------------------------------------------------------------- | -------------------------------------- |
| [VisualElement](/engine/6000.3/script-reference/unityengine/uielements/visualelement.md) | The element containing the custom GUI. |
