Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

UnityObjectRef<T0>.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(UnityObjectRef<T> other);

Parameters

Parameter Description
other The UnityObjectRef to compare for equality.

Returns

bool True if the two references are equal.

Description

Checks if this reference and another reference are equal.


Declaration

public bool Equals(Object obj);

Parameters

Parameter Description
obj The object to compare.

Returns

bool True if obj is a UnityObjectRef that points to the same instance as this.

Description

Checks if this object references the same UnityEngine.Object as another object.