Method MoveEntitiesFrom
MoveEntitiesFrom(EntityManager)
Moves all entities managed by the specified EntityManager to the world of this EntityManager.
Declaration
[NotBurstCompatible]
public void MoveEntitiesFrom(EntityManager srcEntities)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | srcEntities | The EntityManager whose entities are appropriated. |
Remarks
The entities moved are owned by this EntityManager.
Each World has one EntityManager, which manages all the entities in that world. This function allows you to transfer entities from one World to another.
Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before moving the entities and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.
MoveEntitiesFrom(out NativeArray<Entity>, EntityManager)
Moves all entities managed by the specified EntityManager to the World of this EntityManager and fills an array with their Entity objects.
Declaration
[NotBurstCompatible]
public void MoveEntitiesFrom(out NativeArray<Entity> output, EntityManager srcEntities)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<Entity> | output | An array to receive the Entity objects of the transferred entities. |
EntityManager | srcEntities | The EntityManager whose entities are appropriated. |
Remarks
After the move, the entities are managed by this EntityManager. Use the output
array to make post-move
changes to the transferred entities.
Each world has one EntityManager, which manages all the entities in that world. This function allows you to transfer entities from one World to another.
Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before moving the entities and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.
MoveEntitiesFrom(out NativeArray<Entity>, EntityManager, NativeArray<EntityRemapUtility.EntityRemapInfo>)
Moves all entities managed by the specified EntityManager to the World of this EntityManager and fills an array with their Entity objects.
Declaration
[NotBurstCompatible]
public void MoveEntitiesFrom(out NativeArray<Entity> output, EntityManager srcEntities, NativeArray<EntityRemapUtility.EntityRemapInfo> entityRemapping)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<Entity> | output | An array to receive the Entity objects of the transferred entities. |
EntityManager | srcEntities | The EntityManager whose entities are appropriated. |
NativeArray<EntityRemapUtility.EntityRemapInfo> | entityRemapping | A set of entity transformations to make during the transfer. |
Remarks
After the move, the entities are managed by this EntityManager. Use the output
array to make post-move
changes to the transferred entities.
Each world has one EntityManager, which manages all the entities in that world. This function allows you to transfer entities from one World to another.
Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before moving the entities and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.
Exceptions
Type | Condition |
---|---|
ArgumentException |
MoveEntitiesFrom(EntityManager, NativeArray<EntityRemapUtility.EntityRemapInfo>)
Moves all entities managed by the specified EntityManager to the World of this EntityManager.
Declaration
[NotBurstCompatible]
public void MoveEntitiesFrom(EntityManager srcEntities, NativeArray<EntityRemapUtility.EntityRemapInfo> entityRemapping)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | srcEntities | The EntityManager whose entities are appropriated. |
NativeArray<EntityRemapUtility.EntityRemapInfo> | entityRemapping | A set of entity transformations to make during the transfer. |
Remarks
After the move, the entities are managed by this EntityManager.
Each World has one EntityManager, which manages all the entities in that world. This function allows you to transfer entities from one world to another.
Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before moving the entities and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if you attempt to transfer entities to the EntityManager that already owns them. |
MoveEntitiesFrom(EntityManager, EntityQuery)
Moves a selection of the entities managed by the specified EntityManager to the World of this EntityManager and fills an array with their Entity objects.
Declaration
[NotBurstCompatible]
public void MoveEntitiesFrom(EntityManager srcEntities, EntityQuery filter)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | srcEntities | The EntityManager whose entities are appropriated. |
EntityQuery | filter | A EntityQuery that defines the entities to move. Must be part of the source World. |
Remarks
After the move, the entities are managed by this EntityManager. Use the output
array to make post-move
changes to the transferred entities.
Each world has one EntityManager, which manages all the entities in that world. This function allows you to transfer entities from one World to another.
Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before moving the entities and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.
Exceptions
Type | Condition |
---|---|
ArgumentException |
MoveEntitiesFrom(out NativeArray<Entity>, EntityManager, EntityQuery, NativeArray<EntityRemapUtility.EntityRemapInfo>)
Moves a selection of the entities managed by the specified EntityManager to the World of this EntityManager and fills an array with their Entity objects.
Declaration
[NotBurstCompatible]
public void MoveEntitiesFrom(out NativeArray<Entity> output, EntityManager srcEntities, EntityQuery filter, NativeArray<EntityRemapUtility.EntityRemapInfo> entityRemapping)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<Entity> | output | An array to receive the Entity objects of the transferred entities. |
EntityManager | srcEntities | The EntityManager whose entities are appropriated. |
EntityQuery | filter | A EntityQuery that defines the entities to move. Must be part of the source World. |
NativeArray<EntityRemapUtility.EntityRemapInfo> | entityRemapping | A set of entity transformations to make during the transfer. |
Remarks
After the move, the entities are managed by this EntityManager. Use the output
array to make post-move
changes to the transferred entities.
Each world has one EntityManager, which manages all the entities in that world. This function allows you to transfer entities from one World to another.
Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before moving the entities and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.
Exceptions
Type | Condition |
---|---|
ArgumentException |
MoveEntitiesFrom(EntityManager, EntityQuery, NativeArray<EntityRemapUtility.EntityRemapInfo>)
Moves a selection of the entities managed by the specified EntityManager to the World of this EntityManager.
Declaration
[NotBurstCompatible]
public void MoveEntitiesFrom(EntityManager srcEntities, EntityQuery filter, NativeArray<EntityRemapUtility.EntityRemapInfo> entityRemapping)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | srcEntities | The EntityManager whose entities are appropriated. |
EntityQuery | filter | A EntityQuery that defines the entities to move. Must be part of the source World. |
NativeArray<EntityRemapUtility.EntityRemapInfo> | entityRemapping | A set of entity transformations to make during the transfer. |
Remarks
After the move, the entities are managed by this EntityManager.
Each world has one EntityManager, which manages all the entities in that world. This function allows you to transfer entities from one World to another.
Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before moving the entities and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the EntityQuery object used as the |
MoveEntitiesFrom(out NativeArray<Entity>, EntityManager, EntityQuery)
Moves a selection of the entities managed by the specified EntityManager to the World of this EntityManager and fills an array with their Entity objects.
Declaration
[NotBurstCompatible]
public void MoveEntitiesFrom(out NativeArray<Entity> output, EntityManager srcEntities, EntityQuery filter)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<Entity> | output | An array to receive the Entity objects of the transferred entities. |
EntityManager | srcEntities | The EntityManager whose entities are appropriated. |
EntityQuery | filter | A EntityQuery that defines the entities to move. Must be part of the source World. |
Remarks
After the move, the entities are managed by this EntityManager. Use the output
array to make post-move
changes to the transferred entities.
Each world has one EntityManager, which manages all the entities in that world. This function allows you to transfer entities from one World to another.
Important: This function creates a sync point, which means that the EntityManager waits for all currently running Jobs to complete before moving the entities and no additional Jobs can start before the function is finished. A sync point can cause a drop in performance because the ECS framework may not be able to make use of the processing power of all available cores.
Exceptions
Type | Condition |
---|---|
ArgumentException |