ドキュメント

Unity Engine

Unity Engine

Equals

Returns true if the value stored in this reference is equal to the value stored in another reference.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.