Method CopyAndReplaceEntitiesFrom
CopyAndReplaceEntitiesFrom(EntityManager)
Copies all entities from srcEntityManager and replaces all entities in this EntityManager
Declaration
[ExcludeFromBurstCompatTesting("Accesses managed component store")]
public void CopyAndReplaceEntitiesFrom(EntityManager srcEntityManager)
Parameters
Type | Name | Description |
---|---|---|
EntityManager | srcEntityManager | The EntityManager to copy from |
Remarks
Guarantees that the chunk layout and order of the entities will match exactly, thus this method can be used for deterministic rollback. This feature is not complete and only supports a subset of the EntityManager features at the moment:
- Currently it copies all CleanupComponents (They should not be copied)
- Currently does not support class based components