docs.unity.cn
    Show / Hide Table of Contents

    Method Resize

    Resize(Int32, NativeArrayOptions)

    Sets the length of this buffer, increasing the capacity if necessary.

    Declaration
    public void Resize(int length, NativeArrayOptions options)
    Parameters
    Type Name Description
    Int32 length

    The new length of this buffer.

    NativeArrayOptions options

    Whether to clear any newly allocated bytes to all zeroes.

    Remarks

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

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