Method DestroyAndResetAllEntities
DestroyAndResetAllEntities()
Destroys all entities in the EntityManager and resets the internal entity ID version table.
Declaration
[ExcludeFromBurstCompatTesting("Takes managed array")]
public void DestroyAndResetAllEntities()
Remarks
This method can be used to reset an EntityManager for the purpose of creating data that can be written to disk with a deterministic, exact matching file on disk. It resets all chunk and entity version state so that it can be serialized to disk back to a state that is the same as a clean world. Archetypes and EntityQuery are not reset since they are often cached / owned by systems, but these are also not stored on disk.