Struct EntityManagerDiffer | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Struct EntityManagerDiffer

    The EntityManagerDiffer is used to efficiently track changes to a given world over time.

    Namespace: Unity.Entities
    Syntax
    public struct EntityManagerDiffer : IDisposable

    Constructors

    EntityManagerDiffer(EntityManager, Allocator, EntityQueryDesc)

    Declaration
    public EntityManagerDiffer(EntityManager sourceEntityManager, Allocator allocator, EntityQueryDesc entityQueryDesc = null)
    Parameters
    Type Name Description
    EntityManager sourceEntityManager
    Allocator allocator
    EntityQueryDesc entityQueryDesc

    Methods

    Dispose()

    Declaration
    public void Dispose()

    GetChanges(EntityManagerDifferOptions, Allocator)

    Generates a detailed change set for the world. All entities to be considered for diffing must have the EntityGuid component with a unique value.

    Declaration
    public EntityChanges GetChanges(EntityManagerDifferOptions options, Allocator allocator)
    Parameters
    Type Name Description
    EntityManagerDifferOptions options

    A set of options which can be toggled.

    Allocator allocator

    The allocator to use for the results object.

    Returns
    Type Description
    EntityChanges

    A set of changes for the world since the last fast-forward.

    Remarks

    The resulting EntityChanges must be disposed when no longer needed.

    In This Article
    • Constructors
      • EntityManagerDiffer(EntityManager, Allocator, EntityQueryDesc)
    • Methods
      • Dispose()
      • GetChanges(EntityManagerDifferOptions, Allocator)
    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