Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

GlobalObjectId.Equals

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public bool Equals(GlobalObjectId other);

Parameters

other The other GlobalObjectId to compare with this instance.

Returns

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

Description

Checks if this unique object identifier and another are equal.

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