docs.unity.cn
    Show / Hide Table of Contents

    Class ArrayExtensions

    Array utilities functions

    Inheritance
    Object
    ArrayExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    public static class ArrayExtensions

    Methods

    ResizeArray(ref TransformAccessArray, Int32)

    Resizes a transform access array.

    Declaration
    public static void ResizeArray(this ref TransformAccessArray array, int capacity)
    Parameters
    Type Name Description
    TransformAccessArray array

    Target array to resize

    Int32 capacity

    New size of transform access array to resize

    ResizeArray<T>(ref T[], Int32)

    Resizes an array. If a null reference is passed, it will allocate the desired array.

    Declaration
    public static void ResizeArray<T>(ref T[] array, int capacity)
    Parameters
    Type Name Description
    T[] array

    Target array to resize

    Int32 capacity

    New size of array to resize

    Type Parameters
    Name Description
    T

    The type of the array

    ResizeArray<T>(ref NativeArray<T>, Int32)

    Resizes a native array. If an empty native array is passed, it will create a new one.

    Declaration
    public static void ResizeArray<T>(this ref NativeArray<T> array, int capacity)
        where T : struct
    Parameters
    Type Name Description
    NativeArray<T> array

    Target array to resize

    Int32 capacity

    New size of native array to resize

    Type Parameters
    Name Description
    T

    The type of the array

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