docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct EntityChangeSet

    An atomic package of changes to entity and component data.

    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public readonly struct EntityChangeSet

    Constructors

    Name Description
    EntityChangeSet(int, int, int, NativeArray<EntityGuid>, NativeArray<ComponentTypeHash>, NativeArray<FixedString64Bytes>, NativeArray<EntityGuid>, NativeArray<PackedComponent>, NativeArray<FilteredArchetype>, NativeArray<PackedComponent>, NativeArray<PackedComponentDataChange>, NativeArray<byte>, NativeArray<EntityReferenceChange>, NativeArray<BlobAssetReferenceChange>, PackedManagedComponentDataChange[], PackedSharedComponentDataChange[], UnsafeAppendBuffer, NativeArray<LinkedEntityGroupChange>, NativeArray<LinkedEntityGroupChange>, NativeArray<BlobAssetChange>, NativeArray<ulong>, NativeArray<byte>)

    Initializes a new instance of the EntityChangeSet.

    Fields

    Name Description
    AddArchetypes

    A set of all archetype created in this change-set.

    AddComponents

    A set of all component additions in this change-set.

    BlobAssetData

    The payload for all blob assets in this change set.

    BlobAssetReferenceChanges

    A packed set of all blob asset references to patch.

    ComponentData

    Data payload for all component changes specified in SetComponents

    CreatedBlobAssets

    A set of all blob asset creations in this change set.

    CreatedEntityCount

    Number of entities from the start of Entities that should be considered as created.

    DestroyedBlobAssets

    A set of all blob assets destroyed in this change set. Identified by the content hash.

    DestroyedEntityCount

    Number of entities from the end of Entities that should be considered as destroyed.

    Entities

    A packed array of all entities in this change-set.

    EntityReferenceChanges

    A packed set of all entity references to patch.

    LinkedEntityGroupAdditions

    A set of all linked entity group additions.

    LinkedEntityGroupRemovals

    A set of all linked entity group removals.

    NameChangedCount

    Number of entities of which names changed in NameChangedEntityGuids in this change-set, not including created and destroyed entities.

    NameChangedEntityGuids

    Entities of which names changed in this change-set, not including created and destroyed entities.

    Names

    Changed names including created and destroyed entities in this change-set.

    RemoveComponents

    A set of all component removals in this change-set.

    SetComponents

    A set of all component data modifications in this change-set.

    SetManagedComponents

    A set of all managed component data changes.

    SetSharedComponents

    A set of all shared component data changes.

    TypeHashes

    A packed array of all types in this change-set.

    UnmanagedSharedComponentData

    All unmanaged shared data are stored here

    Properties

    Name Description
    HasChanges

    Returns true if this object contains any change.

    IsCreated

    Returns true if this object is allocated.

    Methods

    Name Description
    Dispose()

    Disposes the memory used by the change set


    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • Constructors
    • Fields
    • Properties
    • Methods
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)