docs.unity.cn
    Show / Hide Table of Contents

    Method DestroyAndResetAllEntities

    DestroyAndResetAllEntities()

    Destroys all entities in the EntityManager and resets the internal entity ID version table.

    Declaration
    [NotBurstCompatible]
    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.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 04 August 2022
    Terms of use