# GetViewType()

> Gets the type of the selected PlayModeView window.

## Definition

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

```csharp
public static PlayModeWindow.PlayModeViewTypes GetViewType()
```

### Returns

| Type                                                                                                 | Description                   |
| ---------------------------------------------------------------------------------------------------- | ----------------------------- |
| [PlayModeViewTypes](/engine/6000.0/script-reference/unityeditor/playmodewindow/playmodeviewtypes.md) | The type of the PlayModeView. |
