docs.unity3d.com
    Show / Hide Table of Contents

    Method CopyAndReplaceEntitiesFrom

    CopyAndReplaceEntitiesFrom(EntityManager)

    Copies all entities from srcEntityManager and replaces all entities in this EntityManager

    Declaration
    public void CopyAndReplaceEntitiesFrom(EntityManager srcEntityManager)
    Parameters
    Type Name Description
    EntityManager srcEntityManager
    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 SystemStateComponents (They should not be copied)
    • Currently does not support class based components
    Back to top
    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