Method RemapEntity
RemapEntity(ref NativeArray<EntityRemapInfo>, Entity)
Remaps a source Entity using the Entity
Declaration
public static Entity RemapEntity(ref NativeArray<EntityRemapUtility.EntityRemapInfo> remapping, Entity source)
Parameters
Type | Name | Description |
---|---|---|
Native |
remapping | The array of Entity |
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(EntityRemapInfo*, Entity)
Remaps an entity using the Entity
Declaration
public static Entity RemapEntity(EntityRemapUtility.EntityRemapInfo* remapping, Entity source)
Parameters
Type | Name | Description |
---|---|---|
Entity |
remapping | The array of Entity |
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. |