文档

Unity Engine

Unity Engine

CompareTo(EntityInChunk)

Compares two EntityInChunk objects to determine their relative ordering
阅读时间1 分钟最后更新于 19 天前

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.