文档

Unity Engine

Unity Engine

Equals

Checks if this reference and another reference are equal.
阅读时间1 分钟最后更新于 19 天前

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.