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

    In This Article
    Back to top
    Copyright © 2024 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)