docs.unity.cn
    Show / Hide Table of Contents

    Class DynamicArrayExtensions

    Extension class for DynamicArray

    Inheritance
    System.Object
    DynamicArrayExtensions
    Namespace: UnityEngine.Rendering
    Syntax
    public static class DynamicArrayExtensions

    Methods

    QuickSort<T>(DynamicArray<T>)

    Perform a quick sort on the DynamicArray

    Declaration
    public static void QuickSort<T>(this DynamicArray<T> array)
        where T : IComparable<T>, new()
    Parameters
    Type Name Description
    DynamicArray<T> array

    Array on which to perform the quick sort.

    Type Parameters
    Name Description
    T

    Type of the array.

    QuickSort<T>(DynamicArray<T>, DynamicArray<T>.SortComparer)

    Perform a quick sort on the DynamicArray

    Declaration
    public static void QuickSort<T>(this DynamicArray<T> array, DynamicArray<T>.SortComparer comparer)
        where T : new()
    Parameters
    Type Name Description
    DynamicArray<T> array

    Array on which to perform the quick sort.

    DynamicArray.SortComparer<> comparer

    Comparer used for sorting.

    Type Parameters
    Name Description
    T

    Type of the array.

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