Method CopyEntitiesFrom
CopyEntitiesFrom(EntityManager, NativeArray<Entity>, NativeArray<Entity>)
Instantiates / Copies all entities from srcEntityManager and copies them into this EntityManager. Entity references on components that are being cloned to entities inside the srcEntities set are remapped to the instantiated entities.
Declaration
[ExcludeFromBurstCompatTesting("Accesses managed component store")]
public void CopyEntitiesFrom(EntityManager srcEntityManager, NativeArray<Entity> srcEntities, NativeArray<Entity> outputEntities = default)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | srcEntityManager | The EntityManager to copy from |
NativeArray<Entity> | srcEntities | Entities in the srcEntityManager that have component with Entity references |
NativeArray<Entity> | outputEntities | New entities that have been remapped from srcEntities |