InspectorOrderAttribute(InspectorSort, InspectorSortDirection)
Default constructor initializes the attribute for enum to be shown sorted in UI dropdowns.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public InspectorOrderAttribute(InspectorSort inspectorSort = InspectorSort.ByName, InspectorSortDirection sortDirection = InspectorSortDirection.Ascending)
Parameters
Defines if enum should be shown sorted by name or by value.
Defines if enum should be shown in ascending or descending order.