# GetHeight()

> Gets the height of the window.

## Definition

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

```csharp
public int GetHeight()
```

### Returns

| Type                                                       | Description                         |
| ---------------------------------------------------------- | ----------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The height of the window in pixels. |

### Examples

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

public class WindowHeightExample : MonoBehaviour
{
    void Start()
    {
        var window = GameWindow.Main;
        int height = window.GetHeight();
        Debug.Log($"Window height: {height}");
    }
}
```
