# PatchEntitiesForPrefab(EntityPatchInfo*, int, BufferEntityPatchInfo*, int, byte*, int, int, Entity*, Entity*, int)

> Applies a set of patches, remapping the internal prefab entities.

## Definition

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

```csharp
public static void PatchEntitiesForPrefab(EntityRemapUtility.EntityPatchInfo* scalarPatches, int scalarPatchCount, EntityRemapUtility.BufferEntityPatchInfo* bufferPatches, int bufferPatchCount, byte* chunkBuffer, int indexInChunk, int entityCount, Entity* remapSrc, Entity* remapDst, int remappingCount)
```

### 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)): Theo index in chunk of the source entity to remap.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of entities in chunk.**** (\[Entity\*]\(/engine/7000.0/script-reference/unity/entities/entity)): The remap source array.**** (\[Entity\*]\(/engine/7000.0/script-reference/unity/entities/entity)): The remap target array.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The size of the remap arrays.
