docs.unity.cn
    Show / Hide Table of Contents

    Method PatchEntitiesForPrefab

    PatchEntitiesForPrefab(EntityRemapUtility.EntityPatchInfo*, Int32, EntityRemapUtility.BufferEntityPatchInfo*, Int32, Byte*, Int32, Int32, Entity*, Entity*, Int32)

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

    Declaration
    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
    Type Name Description
    EntityRemapUtility.EntityPatchInfo* scalarPatches

    The scalar patches to apply.

    Int32 scalarPatchCount

    The number of scalar patches.

    EntityRemapUtility.BufferEntityPatchInfo* bufferPatches

    The buffer patches to apply.

    Int32 bufferPatchCount

    The number of buffer patches.

    Byte* chunkBuffer

    The chunk buffer, where the patches are applied.

    Int32 indexInChunk

    Theo index in chunk of the source entity to remap.

    Int32 entityCount

    The number of entities in chunk.

    Entity* remapSrc

    The remap source array.

    Entity* remapDst

    The remap target array.

    Int32 remappingCount

    The size of the remap arrays.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023