Documentation

Unity Engine

Download Unity

Unity Engine

Equals

Checks if this reference and another reference are equal.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.CoreModule

Equals(UnityObjectRef<T>)

Checks if this reference and another reference are equal.
public bool Equals(UnityObjectRef<T> other)

Parameters

The UnityObjectRef to compare for equality.

Returns

Type

Description

boolTrue if the two references are equal.

Equals(Object)

Checks if this object references the same UnityEngine.Object as another object.
public override bool Equals(object obj)

Parameters

The object to compare.

Returns

Type

Description

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