文档

Unity Engine

Download Unity

Unity Engine

Equals

Reports whether this EntityArchetype references the same archetype as another object.
阅读时间1 分钟最后更新于 20 天前

Definition

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

Equals(Object)

Reports whether this EntityArchetype references the same archetype as another object.
public override bool Equals(object compare)

Parameters

compare

The object to compare.

Returns

Type

Description

boolTrue, if the compare parameter is a EntityArchetype instance that points to the same archetype.

Equals(EntityArchetype)

Compares archetypes for equality.
public bool Equals(EntityArchetype entityArchetype)

Parameters

entityArchetype

The EntityArchetype to compare.

Returns

Type

Description

boolReturns true, if both EntityArchetype instances reference the same archetype.