| Parameter | Description |
|---|---|
| windows | A List to be populated with GameWindow objects representing all available windows. |
Populates the provided list with all currently active windows in the application.
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()}"); } } }