# GetMainWindowPosition()

> Gets the position of the main window of the Unity Editor. This is the top level Editor Window that contains all the other Editor views, such as the Project Browser, Hierarchy, and Console.

## Definition

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

```csharp
public static Rect GetMainWindowPosition()
```

### Returns

| Type                                                        | Description                             |
| ----------------------------------------------------------- | --------------------------------------- |
| [Rect](/engine/6000.7/script-reference/unityengine/rect.md) | Position of Unity Editor's main window. |
