docs.unity.cn
    Show / Hide Table of Contents

    Method RemoveRangeSwapBack

    RemoveRangeSwapBack(Int32, Int32)

    Removes the specified number of elements, starting with the element at the specified index. It replaces the elements that were removed with a range of elements from the back of the buffer. This is more efficient than moving all elements following the removed elements, but does change the order of elements in the buffer.

    Declaration
    public void RemoveRangeSwapBack(int index, int count)
    Parameters
    Type Name Description
    Int32 index

    The first element to remove.

    Int32 count

    How many elements tot remove.

    Remarks

    The buffer capacity remains unchanged.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use