Version 3.3.1.2

DisplayAsStringAttributeDrawer<T> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
[DrawerPriority(0, 0, 999.9995)]
public sealed class DisplayAsStringAttributeDrawer<T> : OdinAttributeDrawer<DisplayAsStringAttribute, T>, IDefinesGenericMenuItems
Draws properties marked with DisplayAsStringAttribute. Calls the properties ToString method to get the string to draw.
Inheritance

Type Parameters

T

Constructors

DisplayAsStringAttributeDrawer()
public DisplayAsStringAttributeDrawer()

Methods

DrawPropertyLayout(GUIContent)
Draws the property.
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