Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DisplayInfo

Represents a connected display.
Read time 1 minuteLast updated 5 days ago

Definition

public struct DisplayInfo : IEquatable<DisplayInfo>

Fields

Value

Description

heightThe display height in pixels.
nameHuman-friendly display name.
physicalDpiThe current pixel density of the display measured in dots-per-inch (DPI).
refreshRateThe current refresh rate of the display.
widthThe display width in pixels.
workAreaSpecifies the work area rectangle of the display relative to the top left corner. For example, it excludes the area covered by the macOS Dock or the Windows Taskbar.

Properties

Property

Description

resolutionsReturns all full-screen resolutions supported on the display (Read Only).

Static Methods

Method

Description

GetLayoutRetrieves information about the connected displays and populates a list with properties such as display name, resolution, refresh rate, and other relevant attributes.