This version of Unity is unsupported.

Screen.GetDisplayLayout

Declaration

public static void GetDisplayLayout(List<DisplayInfo> displayLayout);

Parameters

displayLayout Connected display information.

Description

Retrieves layout information about connected displays such as names, resolutions and refresh rates.

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