文档

Unity Engine

Download Unity

Unity Engine

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

Applies a set of entity patches.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

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

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

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.

entityCount

The number of entities in the chunk.

The remapping array.