docs.unity.cn
    Show / Hide Table of Contents

    Method ResizeUninitialized

    ResizeUninitialized(Int32, Int32)

    Increases the buffer capacity and length of the buffer associated to the entity at the given index in the chunk

    Declaration
    public void ResizeUninitialized(int index, int length)
    Parameters
    Type Name Description
    Int32 index

    The array index of the buffer to query

    Int32 length

    the new length of the buffer

    Remarks

    If length is less than the current length of the buffer at index index, the length of the buffer is reduced while the capacity remains unchanged.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if index is out of range

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 13, 2023