Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


mainWindowDisplayInfo

The display information associated with the display that the main application window is on.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static DisplayInfo mainWindowDisplayInfo { get; }

Remarks

This API does not allocate managed memory outside of the Editor. You can access this property without generating garbage or triggering the garbage collector. It is only supported on Linux, macOS and Windows Standalone.