文档

Unity Engine

Unity Engine

Equals(GlobalObjectId)

Checks if this unique object identifier and another are equal.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool Equals(GlobalObjectId other)

Parameters

The other GlobalObjectId to compare with this instance.

Returns

Type

Description

boolReturns
true
if the two instances of GlobalObjectId are value equivalent. Otherwise, returns
false
.

Remarks

This method performs a value equality check. It returns true if the values of every property on this
GlobalObjectId
match the values of the equivalent properties on the
GlobalObjectId
supplied as a parameter. Any two instances of
GlobalObjectId
that are value equivalent must by definition identify the same object.
Additional Resources: GlobalObjectId.CompareTo