DisplayInfo A DisplayInfo object with the display details.
Gets the display information of the display that holds the window.
using UnityEngine; using UnityEngine.Windowing;
public class DisplayInfoExample : MonoBehaviour { void Start() { var window = GameWindow.Main; DisplayInfo info = window.GetDisplayInfo(); Debug.Log($"Display: {info.name}, Resolution: {info.width}x{info.height}"); } }