Version 3.3.1.2

NullableReferenceDrawer<T> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
[AllowGUIEnabledForReadonly]
[DrawerPriority(0, 0, 2000)]
public sealed class NullableReferenceDrawer<T> : OdinValueDrawer<T>, IDefinesGenericMenuItems
Inheritance

Type Parameters

T

Constructors

NullableReferenceDrawer()
public NullableReferenceDrawer()

Methods

CanDrawValueProperty(InspectorProperty)
Returns a value that indicates if this drawer can be used for the given property.
protected override bool CanDrawValueProperty(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Boolean

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