Namespace: | Sirenix.OdinInspector.Editor.Drawers |
Assembly: | Sirenix.OdinInspector.Editor |
public abstract class UnitAttributeDrawer<TPrimitive> : OdinAttributeDrawer<UnitAttribute, TPrimitive>, IDefinesGenericMenuItems
protected UnitAttributeDrawer()
protected abstract TPrimitive DrawField(FieldExpressionContext fieldExpressionContext, GUIContent label, TPrimitive value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
FieldExpressionContext | fieldExpressionContext | |
UnityEngine.GUIContent | label | |
TPrimitive | value | |
UnitInfo | baseUnitInfo | |
UnitInfo | displayUnitInfo |
TPrimitive |
protected override void DrawPropertyLayout(GUIContent label)
UnityEngine.GUIContent | label |
protected override void Initialize()
public void PopulateGenericMenu(InspectorProperty property, GenericMenu genericMenu)
InspectorProperty | property | |
UnityEditor.GenericMenu | genericMenu |