int The height of the window in pixels.
Gets the height of the window.
using UnityEngine; using UnityEngine.Windowing;
public class WindowHeightExample : MonoBehaviour { void Start() { var window = GameWindow.Main; int height = window.GetHeight(); Debug.Log($"Window height: {height}"); } }