Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

NativeSortExtension.SortJobDefer

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static SortJobDefer<T,DefaultComparer<T>> SortJobDefer(NativeList<T> container);

Parameters

Parameter Description
container The list to sort.

Returns

SortJobDefer<T,DefaultComparer<T>> A job for sorting this list.

Description

Returns a job which will sort this list in ascending order.

SortJobDefer is intended for use when NativeList.Length is not known at scheduling time, and it depends on completion of previosly scheduled job(s). This method does not schedule the job. Scheduling the job is left to you.


Declaration

public static SortJobDefer<T,U> SortJobDefer(NativeList<T> container, U comp);

Parameters

Parameter Description
container The list to sort.
comp The comparison function used to determine the relative order of the elements.

Returns

SortJobDefer<T,U> A job for sorting this list.

Description

Returns a job which will sort this list using a custom comparison.

SortJobDefer is intended for use when NativeList.Length is not known at scheduling time, and it depends on completion of previosly scheduled job(s). This method does not schedule the job. Scheduling the job is left to you.