文档

Unity Engine

Download Unity

Unity Engine

implicit operator EntityId

Converts an entity to the EntityId with the same index and version.
阅读时间1 分钟最后更新于 10 天前

Definition

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

implicit operator EntityId(EntityI)

Converts an entity to the EntityId with the same index and version.
public static implicit operator EntityId(Entity entity)

Parameters

entity

The entity to convert.

Returns

Type

Description

EntityIdThe corresponding EntityId.

implicit operator Entity(Entit)

Converts an EntityId to the entity with the same index and version.
public static implicit operator Entity(EntityId entityId)

Parameters

entityId

EntityId
The EntityId to convert.

Returns

Type

Description

EntityThe corresponding entity.