docs.unity3d.com
    Show / Hide Table of Contents

    Struct EntityChangeSet

    An atomic package of changes to entity and component data.

    Namespace: Unity.Entities
    Syntax
    public struct EntityChangeSet : IDisposable

    Constructors

    Name Description
    EntityChangeSet(Int32, Int32, NativeArray<EntityGuid>, NativeArray<ComponentTypeHash>, NativeArray<FixedString64>, NativeArray<PackedComponent>, NativeArray<PackedComponent>, NativeArray<PackedComponentDataChange>, NativeArray<Byte>, NativeArray<EntityReferenceChange>, NativeArray<BlobAssetReferenceChange>, PackedManagedComponentDataChange[], PackedSharedComponentDataChange[], NativeArray<LinkedEntityGroupChange>, NativeArray<LinkedEntityGroupChange>, NativeArray<BlobAssetChange>, NativeArray<UInt64>, NativeArray<Byte>)

    Fields

    Name Description
    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.

    Names

    Names for each entity 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.

    Properties

    Name Description
    HasChanges
    IsCreated

    Returns true if this object is allocated.

    Methods

    Name Description
    Dispose()
    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