Version 3.3.1.2

UnitAttributeDrawer<TPrimitive> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
public abstract class UnitAttributeDrawer<TPrimitive> : OdinAttributeDrawer<UnitAttribute, TPrimitive>, IDefinesGenericMenuItems
Inheritance

Type Parameters

TPrimitive

Constructors

UnitAttributeDrawer()
protected UnitAttributeDrawer()

Methods

DrawField(FieldExpressionContext, GUIContent, TPrimitive, UnitInfo, UnitInfo)
protected abstract TPrimitive DrawField(FieldExpressionContext fieldExpressionContext, GUIContent label, TPrimitive value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext fieldExpressionContext

UnityEngine.GUIContent label

TPrimitive value

UnitInfo baseUnitInfo

UnitInfo displayUnitInfo

Returns
TPrimitive

DrawPropertyLayout(GUIContent)
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

Initialize()
protected override void Initialize()
PopulateGenericMenu(InspectorProperty, GenericMenu)
public void PopulateGenericMenu(InspectorProperty property, GenericMenu genericMenu)
Parameters
InspectorProperty property

UnityEditor.GenericMenu genericMenu

Extension Methods