# Editor.GameMode.SetPlayWidget

```csharp
static void SetPlayWidget(SceneRenderingWidget widget)
```

Given a widget, register it for SDL input, and tell the engine this is the swapchain we have

### Parameters

- `widget` (`SceneRenderingWidget`)

Declared in [Editor.GameMode](/api/Editor.GameMode).
Assembly: `Sandbox.Tools`.
