# GetMainGameViewSize()

> Get the width and height of the main game view.

## Definition

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

```csharp
public static Vector2 GetMainGameViewSize()
```

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector2](/engine/6000.5/script-reference/unityengine/vector2.md) |             |
