InspectorOrderAttribute(InspectorSort, InspectorSortDirection)
Default constructor initializes the attribute for enum to be shown sorted in UI dropdowns.
Read time 1 minuteLast updated 4 days ago
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.