文档

Unity Engine

Download Unity

Unity Engine

RemapEntity

Remaps a source Entity using the EntityRemapUtility.EntityRemapInfo array.
阅读时间1 分钟最后更新于 19 天前

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.