Version 3.3.1.2

EnumToggleButtonsAttributeDrawer<T> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
public class EnumToggleButtonsAttributeDrawer<T> : OdinAttributeDrawer<EnumToggleButtonsAttribute, T>
Draws an enum in a horizontal button group instead of a dropdown.
Inheritance

Type Parameters

T

Constructors

EnumToggleButtonsAttributeDrawer()
public EnumToggleButtonsAttributeDrawer()

Methods

CanDrawTypeFilter(Type)
Returns true if the drawer can draw the type.
public override bool CanDrawTypeFilter(Type type)
Parameters
System.Type type

Returns
System.Boolean

DrawPropertyLayout(GUIContent)
Draws the property.
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

Initialize()
protected override void Initialize()
Extension Methods