# PatchEntities(EntityPatchInfo*, int, BufferEntityPatchInfo*, int, byte*, int, ref NativeArray<EntityRemapInfo>)

> Applies a set of entity patches.

## Definition

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

## PatchEntities(EntityPatchInfo\*, int, BufferEntityPatchInfo\*, int, byte\*, int, NativeArray\<EntityRemapInfo>)

```csharp
public static void PatchEntities(EntityRemapUtility.EntityPatchInfo* scalarPatches, int scalarPatchCount, EntityRemapUtility.BufferEntityPatchInfo* bufferPatches, int bufferPatchCount, byte* chunkBuffer, int entityCount, ref NativeArray<EntityRemapUtility.EntityRemapInfo> remapping)
```

### Parameters

**** (\[EntityPatchInfo\*]\(/engine/7000.0/script-reference/unity/entities/entityremaputility/entitypatchinfo)): The scalar patches to apply.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of scalar patches.**** (\[BufferEntityPatchInfo\*]\(/engine/7000.0/script-reference/unity/entities/entityremaputility/bufferentitypatchinfo)): The buffer patches to apply.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of buffer patches.**** (\[byte\*]\(https\://learn.microsoft.com/dotnet/api/system.byte)): The chunk buffer, where the patches are applied.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of entities in the chunk.**** (\[NativeArray\<EntityRemapInfo>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): The remapping array.
