기술 자료

Unity Engine

Unity Engine

NativeSortExtension

Extension methods for sorting collections.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static class NativeSortExtension

Static Methods

Method

Description

BinarySearchFinds a value in a sorted array by binary search.
SortSorts an array in ascending order.
SortIndicesSorts a span of indices by comparing a read-only span of values of type T, using a custom comparer.
SortJobReturns a job which will sort an array in ascending order.
SortJobDeferReturns a job which will sort this list in ascending order.

Structs

Struct

Description

NativeSortExtension.DefaultComparer<T>A comparer that uses IComparable.CompareTo(). For primitive types, this is an ascending sort.