文档

Unity Engine

Unity Engine

operator <=(EntityId, EntityId)

Determines whether the first EntityId is less than or equal to the second.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Operator
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool operator <=(EntityId left, EntityId right)

Parameters

Returns

Type

Description

boolTrue if the first EntityId is less than or equal to the second; otherwise, false.

Remarks

The ordering of
EntityId
values is arbitrary and does not reflect creation order or any other meaningful property. Do not rely on the comparison result for anything other than establishing a consistent ordering for data structures that require it.