DrawerPriorityAttribute

DrawerPriority is used on inspector drawers and indicates the priority of the drawer.

Use this to make your custom drawer to come before or after other drawers, and potentially hide other drawers.

namespace Sirenix.OdinInspector.Editor
{
[AttributeUsageAttribute((AttributeTargets)4)]
public class DrawerPriorityAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

See Also

Constructors

Definition Description
DrawerPriorityAttribute(double, double, double) Indicates the priority of an inspector drawer.
DrawerPriorityAttribute(DrawerPriorityLevel) Indicates the priority of an inspector drawer.

Properties

Return Type Definition Description
DrawerPriority Priority The priority of the drawer.

Example

The following example shows how DrawerPriority could be apply to a value drawer.

[DrawerPriority(DrawerPriorityLevel.ValuePriority)]
[OdinDrawer]
public sealed class MyIntDrawer : InspectorValuePropertyDrawer<int>
{
	// ...
}

Example

The following example shows how DrawerPriority is used to mark a custom int drawer as a high priority drawer.

[DrawerPriority(1, 0, 0)]
[OdinDrawer]
public sealed class MySpecialIntDrawer : InspectorValuePropertyDrawer<int>
{
	// ...
}