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
public void CopyEntitiesFrom(EntityManager srcEntityManager, NativeArray<Entity> srcEntities, NativeArray<Entity> outputEntities = null)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | srcEntityManager | |
NativeArray<Entity> | srcEntities | |
NativeArray<Entity> | outputEntities |