ドキュメント

Unity Engine

Unity Engine

DisplayInfo

Represents a connected display.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.