# SetViewType(PlayModeViewTypes)

> Changes the type of the selected PlayModeView window.

## Definition

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

```csharp
public static void SetViewType(PlayModeWindow.PlayModeViewTypes type)
```

### Parameters

**** (\[PlayModeViewTypes]\(/engine/6000.6/script-reference/unityeditor/playmodewindow/playmodeviewtypes)): The new PlayModeView type.
