# GetWindows(List<GameWindow>)

> Populates the provided list with all currently active windows in the application.

## Definition

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

```csharp
public static void GetWindows(List<GameWindow> windows)
```

### Parameters

**** (\[List\<GameWindow>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): A List to be populated with [GameWindow](/engine/6000.7/script-reference/unityengine/windowing/gamewindow.md) objects representing all available windows.

### Examples

```csharp
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Windowing;

public class GetWindowsExample : MonoBehaviour
{
    List<GameWindow> windows = new List<GameWindow>();

    void Start()
    {
        GameWindowManager.GetWindows(windows);

        Debug.Log($"Total windows: {windows.Count}");
        foreach (var window in windows)
        {
            Debug.Log($"Window: {window.GetTitle()}, Size: {window.GetWidth()}x{window.GetHeight()}");
        }
    }
}
```
