docs.unity3d.com
    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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023