Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Equals

Returns true if the value stored in this reference is equal to the value stored in another reference.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

Equals(NativeReference<T>)

Returns true if the value stored in this reference is equal to the value stored in another reference.
[ExcludeFromBurstCompatTesting("Equals boxes because Value does not implement IEquatable<T>")]public bool Equals(NativeReference<T> other)

Parameters

A reference to compare with.

Returns

Type

Description

boolTrue if the value stored in this reference is equal to the value stored in another reference.

Equals(Object)

Returns true if the value stored in this reference is equal to an object.
[ExcludeFromBurstCompatTesting("Takes managed object")]public override bool Equals(object obj)

Parameters

An object to compare with.

Returns

Type

Description

boolTrue if the value stored in this reference is equal to the object.

Remarks

Can only be equal if the object is itself a NativeReference.