docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AppendBufferEntityPatches

    AppendBufferEntityPatches(BufferEntityPatchInfo*, EntityOffsetInfo*, int, int, int, int)

    Adds EntityRemapUtility.BufferEntityPatchInfo elements for each of the input offsets.

    Declaration
    public static EntityRemapUtility.BufferEntityPatchInfo* AppendBufferEntityPatches(EntityRemapUtility.BufferEntityPatchInfo* patches, TypeManager.EntityOffsetInfo* offsets, int offsetCount, int bufferBaseOffset, int bufferStride, int elementStride)
    Parameters
    Type Name Description
    BufferEntityPatchInfo* patches

    The patch array,

    EntityOffsetInfo* offsets

    The offset array.

    int offsetCount

    The number of offsets in the array.

    int bufferBaseOffset

    The offset within chunk where first buffer header can be found.

    int bufferStride

    The stride between adjacent buffers that need patching.

    int elementStride

    The stride between adjacent buffer elements.

    Returns
    Type Description
    BufferEntityPatchInfo*

    Returns a pointer to the next free slot in the patches array.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)