Vector2Int A Vector2Int that represents the position of the window.
Gets the position of the window relative to the top-left corner of the screen.
using UnityEngine; using UnityEngine.Windowing;
public class WindowPositionExample : MonoBehaviour { void Start() { var window = GameWindow.Main; Vector2Int pos = window.GetPosition(); Debug.Log($"Window position: {pos.x}, {pos.y}"); } }