文档

Unity Engine

Unity Engine

InspectorOrderAttribute(InspectorSort, InspectorSortDirection)

Default constructor initializes the attribute for enum to be shown sorted in UI dropdowns.
阅读时间1 分钟最后更新于 1 天前

Definition

public InspectorOrderAttribute(InspectorSort inspectorSort = InspectorSort.ByName, InspectorSortDirection sortDirection = InspectorSortDirection.Ascending)

Parameters

inspectorSort

Defines if enum should be shown sorted by name or by value.

Defines if enum should be shown in ascending or descending order.