# IsMain()

> Returns true if this window is the main application window.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Windowing](/engine/6000.7/script-reference/unityengine/windowing.md)
* **Assembly:** UnityEngine.WindowingModule

```csharp
public bool IsMain()
```

### Returns

| Type                                                          | Description                                         |
| ------------------------------------------------------------- | --------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if this window is the main application window. |

### Examples

```csharp
using UnityEngine;
using UnityEngine.Windowing;

public class IsMainWindowExample : MonoBehaviour
{
    void Start()
    {
        var window = GameWindow.Main;
        bool isMain = window.IsMain();
        Debug.Log($"Is main window: {isMain}");
    }
}
```
