Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Equals(GlobalObjectId)

Checks if this unique object identifier and another are equal.
Read time 1 minuteLast updated 6 days ago

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