ドキュメント

Unity Engine

Download Unity

Unity Engine

Equals

Checks if this reference and another reference are equal.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.