# CreateContent(Layout)

> Creates a new VisualElement containing the contents of this Overlay.

## Definition

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

```csharp
public VisualElement CreateContent(Layout requestedLayout)
```

### Parameters

**** (\[Layout]\(/engine/6000.3/script-reference/unityeditor/overlays/layout)): The layout that contents should be styled to match.

### Returns

| Type                                                                                     | Description                                                  |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [VisualElement](/engine/6000.3/script-reference/unityengine/uielements/visualelement.md) | A new Visual Element containing the contents of the Overlay. |

### Remarks

If the requestedLayout cannot be used, then the system uses another layout.  If the layout is not able to be created, the default Panel layout content is returned.
