Equals
Returns true if the resolutions are equal.
阅读时间1 分钟最后更新于 1 个月前
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.