Documentation

Unity Engine


Unity Engine


implicit operator EntityId(Entity)

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

Definition

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

implicit operator EntityId(EntityI)

public static implicit operator EntityId(Entity entity)

Parameters

entity

The entity to convert.

Returns

Type

Description

EntityIdThe corresponding EntityId.