SetSorting(int, bool)
Sets the primary sorting column and its sorting order.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor
public void SetSorting(int columnIndex, bool sortAscending)
Parameters
Remarks
This function sets the primary sorting column and its sorting order. It also triggers the MultiColumnHeader.sortingChanged event if the sorting state changes. You can set the columnIndex to -1 to clear the sort.
Additional Resources: MultiColumnHeader.SetSortingColumns, MultiColumnHeader.sortedColumnIndex and MultiColumnHeader.IsSortedAscending.g.