文档

Unity Engine

Unity Engine

Equals

Returns true if the refresh rates are equal.
阅读时间1 分钟最后更新于 1 个月前

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

boolTrue 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

boolTrue 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.