Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Resolution

Represents a display resolution.
Read time 1 minuteLast updated 4 days ago

Definition

public struct Resolution : IEquatable<Resolution>

Remarks

Resolution structures are returned by Screen.resolutions property.

Properties

Property

Description

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

Methods

Method

Description

EqualsReturns true if the resolutions are equal.
GetHashCodeReturns the hash code for this resolution.
ToStringReturns a nicely formatted string of the resolution.

Operators

Operator

Description

operator ==Returns true if two resolutions are equal.
operator !=Returns true if two resolutions are unequal.