Documentation

Unity Engine


Unity Engine


RemapEntity

Remaps a source Entity using the EntityRemapUtility.EntityRemapInfo array.
Read time 1 minuteLast updated 18 hours ago

Definition

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

RemapEntity(NativeArray<EntityRemapInfo>, Entity)

Remaps a source Entity using the EntityRemapUtility.EntityRemapInfo array.
public static Entity RemapEntity(ref NativeArray<EntityRemapUtility.EntityRemapInfo> remapping, Entity source)

Parameters

The array of EntityRemapUtility.EntityRemapInfo used to perform the remapping.

source

The source Entity to remap.

Returns

Type

Description

EntityReturns the remapped Entity ID if it is valid in the current world, otherwise returns Entity.Null.

RemapEntity(EntityRemapInfo*, Entity)

Remaps an entity using the EntityRemapUtility.EntityRemapInfo array.
public static Entity RemapEntity(EntityRemapUtility.EntityRemapInfo* remapping, Entity source)

Parameters

The array of EntityRemapUtility.EntityRemapInfo used to perform the remapping.

source

The source Entity to remap.

Returns

Type

Description

EntityReturns the remapped Entity ID if it is valid in the current world, otherwise returns Entity.Null.