Documentation

Unity Engine

Unity Engine

Equals

Entity instances are equal if they refer to the same entity.
Read time 1 minuteLast updated 7 days ago

Definition

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

Equals(Object)

Entity instances are equal if they refer to the same entity.
public override bool Equals(object compare)

Parameters

compare

The object to compare to this Entity.

Returns

Type

Description

boolTrue, if the compare parameter contains an Entity object having the same Index and Version as this Entity.

Equals(Entity)

Entity instances are equal if they represent the same entity.
public bool Equals(Entity entity)

Parameters

entity

The other Entity.

Returns

Type

Description

boolTrue, if the Entity instances have the same Index and Version.