Version: 2022.3

Screen.mainWindowDisplayInfo

切换到手册
public static DisplayInfo mainWindowDisplayInfo ;

描述

The display information associated with the display that the main application window is on.

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.