# Editor.DockManager.SetCentralWidget

```csharp
DockWidget SetCentralWidget(Widget widget)
```

Sets a widget as the central (always present, non-closable) area. Must be
called before any other dock is added. Returns the dock hosting it, which
can be used as a target for relative docking.

### Parameters

- `widget` (`Widget`)

### Returns

`DockWidget`

Declared in [Editor.DockManager](/api/Editor.DockManager).
Assembly: `Sandbox.Tools`.
