文档

Unity Engine

Unity Engine

Resolution

Represents a display resolution.
阅读时间1 分钟最后更新于 1 个月前

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.