docs.unity.cn
    Show / Hide Table of Contents

    Method CopyAndReplaceEntitiesFrom

    CopyAndReplaceEntitiesFrom(EntityManager)

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

    Declaration
    [NotBurstCompatible]
    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 © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use