Documentation

Unity Engine

Download Unity

Unity Engine

CompareTo(EntityInChunk)

Compares two EntityInChunk objects to determine their relative ordering
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public int CompareTo(EntityInChunk other)

Parameters

The other instance to compare.

Returns

Type

Description

int-1 if this entity should be ordered earlier than
other
. 1 if this entity should be ordered later than
other
. 0 if the two entities are equivalent.