Documentation

Unity Engine


Unity Engine


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

Applies a set of patches, remapping the internal prefab entities.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
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

scalarPatches

The scalar patches to apply.

scalarPatchCount

The number of scalar patches.

The buffer patches to apply.

bufferPatchCount

The number of buffer patches.

chunkBuffer

The chunk buffer, where the patches are applied.

indexInChunk

Theo index in chunk of the source entity to remap.

entityCount

The number of entities in chunk.

remapSrc

The remap source array.

remapDst

The remap target array.

remappingCount

The size of the remap arrays.