Documentation

Unity Engine

Download Unity

Unity Engine

implicit operator EntityId

Converts an entity to the EntityId with the same index and version.
Read time 1 minuteLast updated 23 days ago

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.