Documentation

Unity Engine


Unity Engine


EntityChangeSet

An atomic package of changes to entity and component data.
Read time 2 minutesLast updated 3 days ago

Definition

public readonly struct EntityChangeSet : IDisposable

Fields

Value

Description

AddArchetypesA set of all archetype created in this change-set.
AddComponentsA set of all component additions in this change-set.
BlobAssetDataThe payload for all blob assets in this change set.
BlobAssetReferenceChangesA packed set of all blob asset references to patch.
ComponentDataData payload for all component changes specified in EntityChangeSet.SetComponents
CreatedBlobAssetsA set of all blob asset creations in this change set.
CreatedEntityCountNumber of entities from the start of EntityChangeSet.Entities that should be considered as created.
DestroyedBlobAssetsA set of all blob assets destroyed in this change set. Identified by the content hash.
DestroyedEntityCountNumber of entities from the end of EntityChangeSet.Entities that should be considered as destroyed.
EntitiesA packed array of all entities in this change-set.
EntityReferenceChangesA packed set of all entity references to patch.
LinkedEntityGroupAdditionsA set of all linked entity group additions.
LinkedEntityGroupRemovalsA set of all linked entity group removals.
NameChangedCountNumber of entities of which names changed in EntityChangeSet.NameChangedEntityGuids in this change-set, not including created and destroyed entities.
NameChangedEntityGuidsEntities of which names changed in this change-set, not including created and destroyed entities.
NamesChanged names including created and destroyed entities in this change-set.
RemoveComponentsA set of all component removals in this change-set.
SetComponentsA set of all component data modifications in this change-set.
SetSharedComponentsA set of all shared component data changes.
TypeHashesA packed array of all types in this change-set.
UnmanagedSharedComponentDataAll unmanaged shared data are stored here

Constructors

Properties

Property

Description

HasChangesReturns true if this object contains any change.
IsCreatedReturns true if this object is allocated.

Methods

Method

Description

DisposeDisposes the memory used by the change set