文档

Unity Engine

Unity Engine

operator ==(RefreshRate, RefreshRate)

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

Definition

  • Type: Operator
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool operator ==(RefreshRate lhs, RefreshRate rhs)

Parameters

Refresh rate to compare on the left side.

Refresh rate to compare on the right side.

Returns

Type

Description

boolTrue if both refresh rates represent the same value, otherwise false.

Remarks

Refresh rates are compared as ratios. For example, a refresh rate of 120/2 is equal to a refresh rate of 60/1.
Additional Resources: RefreshRate.Equals