docs.unity.cn
    Show / Hide Table of Contents

    Class DynamicArrayExtensions

    Extension class for DynamicArray

    Inheritance
    Object
    DynamicArrayExtensions
    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 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 08 September 2023