docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)