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
    [ExcludeFromBurstCompatTesting("Accesses managed component store")]
    public void CopyAndReplaceEntitiesFrom(EntityManager srcEntityManager)
    Parameters
    Type Name Description
    EntityManager srcEntityManager

    The EntityManager to copy from

    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 CleanupComponents (They should not be copied)
    • Currently does not support class based components
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023