SetSortingColumns(int[], bool[])
Sets multiple sorting columns and the associated sorting orders.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor.CoreModule
public void SetSortingColumns(int[] columnIndices, bool[] sortAscending)
Parameters
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.