Resolution
Represents a display resolution.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Implements: IEquatable<Resolution>
public struct Resolution : IEquatable<Resolution>
Remarks
Resolution structures are returned by Screen.resolutions property.
Properties
Property | Description |
|---|---|
| height | Resolution height in pixels. |
| refreshRateRatio | Resolution's vertical refresh rate in Hz. |
| width | Resolution width in pixels. |
Methods
Method | Description |
|---|---|
| Equals | Returns true if the resolutions are equal. |
| GetHashCode | Returns the hash code for this resolution. |
| ToString | Returns 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. |