# PlayModeWindow

> Class containing methods to interact with the selected Unity PlayModeView (GameView, Simulator).

## Definition

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

```csharp
public class PlayModeWindow
```

## Static Methods

| Method                                                                                                                     | Description                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetPlayModeFocused](/engine/6000.0/script-reference/unityeditor/playmodewindow/getplaymodefocused.md)                     | Returns the enter play mode behavior for the selected PlayModeView.                                                                                                                      |
| [GetRenderingResolution](/engine/6000.0/script-reference/unityeditor/playmodewindow/getrenderingresolution.md)             | Retrieves the current rendering resolution of the selected PlayModeView.                                                                                                                 |
| [GetViewType](/engine/6000.0/script-reference/unityeditor/playmodewindow/getviewtype.md)                                   | Gets the type of the selected PlayModeView window.                                                                                                                                       |
| [SetCustomRenderingResolution](/engine/6000.0/script-reference/unityeditor/playmodewindow/setcustomrenderingresolution.md) | Adds a new Custom resolution entry with the specified baseName. If an entry with the same baseName already exists, this method updates the resolution of this entry with the new values. |
| [SetPlayModeFocused](/engine/6000.0/script-reference/unityeditor/playmodewindow/setplaymodefocused.md)                     | Changes the enter play mode behavior of the selected PlayModeView window.                                                                                                                |
| [SetViewType](/engine/6000.0/script-reference/unityeditor/playmodewindow/setviewtype.md)                                   | Changes the type of the selected PlayModeView window.                                                                                                                                    |

## Enums

| Enum                                                                                                                | Description                      |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| [PlayModeWindow.PlayModeViewTypes](/engine/6000.0/script-reference/unityeditor/playmodewindow/playmodeviewtypes.md) | List of supported PlayModeViews. |
