Documentation

Unity Engine


Unity Engine


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>, PackedSharedComponentDataChange[], UnsafeAppendBuffer, NativeArray<LinkedEntityGroupChange>, NativeArray<LinkedEntityGroupChange>, NativeArray<BlobAssetChange>, NativeArray<ulong>, NativeArray<byte>)

Initializes a new instance of the EntityChangeSet.
Read time 2 minutesLast updated 3 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public EntityChangeSet(int createdEntityCount, int destroyedEntityCount, int nameChangedCount, NativeArray<EntityGuid> entities, NativeArray<ComponentTypeHash> typeHashes, NativeArray<FixedString64Bytes> names, NativeArray<EntityGuid> nameChangedEntityGuids, NativeArray<PackedComponent> addComponents, NativeArray<FilteredArchetype> addArchetypes, NativeArray<PackedComponent> removeComponents, NativeArray<PackedComponentDataChange> setComponents, NativeArray<byte> componentData, NativeArray<EntityReferenceChange> entityReferenceChanges, NativeArray<BlobAssetReferenceChange> blobAssetReferenceChanges, PackedSharedComponentDataChange[] setSharedComponents, UnsafeAppendBuffer unmanagedSharedComponentData, NativeArray<LinkedEntityGroupChange> linkedEntityGroupAdditions, NativeArray<LinkedEntityGroupChange> linkedEntityGroupRemovals, NativeArray<BlobAssetChange> createdBlobAssets, NativeArray<ulong> destroyedBlobAssets, NativeArray<byte> blobAssetData)

Parameters

createdEntityCount

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

destroyedEntityCount

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

nameChangedCount

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

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

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

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

nameChangedEntityGuids

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

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

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

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

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

componentData

Data payload for all component changes specified in EntityChangeSet.SetComponents.

A packed set of all entity references to patch.

blobAssetReferenceChanges

A packed set of all blob asset references to patch.

A set of all shared component data changes.

unmanagedSharedComponentData

All unmanaged shared data are stored here.

linkedEntityGroupAdditions

A set of all linked entity group additions.

linkedEntityGroupRemovals

A set of all linked entity group removals.

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

destroyedBlobAssets

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

blobAssetData

The payload for all blob assets in this change set.