Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

Resolution

struct in UnityEngine

Switch to Manual

Description

Represents a display resolution.

Resolution structures are returned by Screen.resolutions property.

Variables

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

Public Functions

ToStringReturns a nicely formatted string of the resolution.