Equals
Returns true if the resolutions are equal.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Equals(Resolution)
Returns true if the resolutions are equal.
public bool Equals(Resolution other)
Parameters
Resolution to compare against.
Returns
Type | Description |
|---|---|
| bool | True if the width, height, and refresh rate of both resolutions are equal, otherwise false. |
Remarks
Refresh rates are compared as ratios, so fractions that represent the same value are equal even if their numerators and denominators differ. For more information, refer to RefreshRate.Equals.
Equals(Object)
Returns true if the resolutions are equal.
public override bool Equals(object obj)
Parameters
Object to compare against.
Returns
Type | Description |
|---|---|
| bool | True if the width, height, and refresh rate of both resolutions are equal, otherwise false. |
Remarks
Refresh rates are compared as ratios, so fractions that represent the same value are equal even if their numerators and denominators differ. For more information, refer to RefreshRate.Equals.