# SetPlayModeFocused(bool)

> Changes the enter play mode behavior of the selected PlayModeView window.

## Definition

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

```csharp
public static void SetPlayModeFocused(bool focused)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, sets the view to Focused, otherwise to maximized.
