Method RemapEntity
RemapEntity(ref NativeArray<EntityRemapUtility.EntityRemapInfo>, Entity)
Remaps a source Entity using the EntityRemapUtility.EntityRemapInfo array.
Declaration
public static Entity RemapEntity(ref NativeArray<EntityRemapUtility.EntityRemapInfo> remapping, Entity source)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<EntityRemapUtility.EntityRemapInfo> | remapping | The array of EntityRemapUtility.EntityRemapInfo used to perform the remapping. |
| Entity | source | The source Entity to remap. |
Returns
| Type | Description |
|---|---|
| Entity | Returns the remapped Entity ID if it is valid in the current world, otherwise returns Entity.Null. |
RemapEntity(EntityRemapUtility.EntityRemapInfo*, Entity)
Remaps an entity using the EntityRemapUtility.EntityRemapInfo array.
Declaration
public static Entity RemapEntity(EntityRemapUtility.EntityRemapInfo*remapping, Entity source)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityRemapUtility.EntityRemapInfo* | remapping | The array of EntityRemapUtility.EntityRemapInfo used to perform the remapping. |
| Entity | source | The source Entity to remap. |
Returns
| Type | Description |
|---|---|
| Entity | Returns the remapped Entity ID if it is valid in the current world, otherwise returns Entity.Null. |