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
The entity to convert.
Returns
Type | Description |
|---|---|
| EntityId | The 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
Returns
Type | Description |
|---|---|
| Entity | The corresponding entity. |