# 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.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
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

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of entities from the start of [EntityChangeSet.Entities](/engine/7000.0/script-reference/unity/entities/entitychangeset/entities.md) that should be considered as created.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of entities from the end of [EntityChangeSet.Entities](/engine/7000.0/script-reference/unity/entities/entitychangeset/entities.md) that should be considered as destroyed.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of entities of which names changed in [EntityChangeSet.NameChangedEntityGuids](/engine/7000.0/script-reference/unity/entities/entitychangeset/namechangedentityguids.md) in this change-set, not including created and destroyed entities.**** (\[NativeArray\<EntityGuid>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A packed array of all entities in this change-set.**** (\[NativeArray\<ComponentTypeHash>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A packed array of all types in this change-set.**** (\[NativeArray\<FixedString64Bytes>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): Changed names including created and destroyed entities in this change-set.**** (\[NativeArray\<EntityGuid>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): Entities of which names changed in this change-set, not including created and destroyed entities.**** (\[NativeArray\<PackedComponent>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A set of all component additions in this change-set.**** (\[NativeArray\<FilteredArchetype>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A set of all archetype additions in this change-set.**** (\[NativeArray\<PackedComponent>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A set of all component removals in this change-set.**** (\[NativeArray\<PackedComponentDataChange>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A set of all component data modifications in this change-set.**** (\[NativeArray\<byte>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): Data payload for all component changes specified in [EntityChangeSet.SetComponents](/engine/7000.0/script-reference/unity/entities/entitychangeset/setcomponents.md).**** (\[NativeArray\<EntityReferenceChange>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A packed set of all entity references to patch.**** (\[NativeArray\<BlobAssetReferenceChange>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A packed set of all blob asset references to patch.**** (\[PackedSharedComponentDataChange\[]]\(/engine/7000.0/script-reference/unity/entities/packedsharedcomponentdatachange)): A set of all shared component data changes.**** (\[UnsafeAppendBuffer]\(/engine/7000.0/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer)): All unmanaged shared data are stored here.**** (\[NativeArray\<LinkedEntityGroupChange>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A set of all linked entity group additions.**** (\[NativeArray\<LinkedEntityGroupChange>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A set of all linked entity group removals.**** (\[NativeArray\<BlobAssetChange>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A set of all blob asset creations in this change set.**** (\[NativeArray\<ulong>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): A set of all blob assets destroyed in this change set. Identified by the content hash.**** (\[NativeArray\<byte>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): The payload for all blob assets in this change set.
