Version: 2022.3

InspectorOrderAttributeConstructor

切换到手册
public InspectorOrderAttribute (InspectorSort inspectorSort, InspectorSortDirection sortDirection);

参数

inspectorSort Defines if enum should be shown sorted by name or by value.
sortDirection Defines if enum should be shown in ascending or descending order.

描述

Default constructor initializes the attribute for enum to be shown sorted in UI dropdowns.