Equals
Returns true if the refresh rates are equal.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Equals(RefreshRate)
Returns true if the refresh rates are equal.
public bool Equals(RefreshRate other)
Parameters
Refresh rate to compare against.
Returns
Type | Description |
|---|---|
| bool | True if both refresh rates represent the same value, 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 example, a refresh rate of 120/2 is equal to a refresh rate of 60/1.
Equals(Object)
Returns true if the refresh rates are equal.
public override bool Equals(object obj)
Parameters
Object to compare against.
Returns
Type | Description |
|---|---|
| bool | True if both refresh rates represent the same value, 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 example, a refresh rate of 120/2 is equal to a refresh rate of 60/1.