文档

Unity Engine

Unity Engine

GetHashCode()

Returns a hash code for this EntityId.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public override int GetHashCode()

Returns

Type

Description

intA 32-bit signed integer hash code.

Remarks

The hash code is computed from the internal representation of the
EntityId
and does not reflect creation order or any other meaningful property. Do not use the hash code to infer ordering or relationships between
EntityId
values, and do not use it as a substitute for the
EntityId
itself.