ドキュメント

Unity Engine

Unity Engine

SetSortingColumns(int[], bool[])

Sets multiple sorting columns and the associated sorting orders.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public void SetSortingColumns(int[] columnIndices, bool[] sortAscending)

Parameters

columnIndices

Column indices of the sorted columns.

sortAscending

Sorting order for the column indices specified.

Remarks

This function sets multiple sorting columns and the associated sorting orders. The first entry is the primary sorted column. It also triggers the MultiColumnHeader.sortingChanged event if the sorting state changes. You can input two empty arrays to clear the sorting columns so no sorting would happen.
Additional Resources: MultiColumnHeader.SetSorting.