Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Resolution

struct in UnityEngine

Description

Represents a display resolution.

Resolution structures are returned by Screen.resolutions property.

Properties

heightResolution height in pixels.
refreshRateResolution's vertical refresh rate in Hz.
widthResolution width in pixels.

Public Methods

ToStringReturns a nicely formatted string of the resolution.

Did you find this page useful? Please give it a rating: