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