Version 3.3.0.1

ReferenceDrawer<T> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
[AllowGUIEnabledForReadonly]
[DrawerPriority(90, 0, 0)]
public sealed class ReferenceDrawer<T> : OdinValueDrawer<T> where T : class
Draws all reference type properties, which has already been drawn elsewhere. This drawer adds an additional foldout to prevent infinite draw depth.
Inheritance

Type Parameters

T

Constructors

ReferenceDrawer()
public ReferenceDrawer()

Methods

CanDrawTypeFilter(Type)
Prevents the drawer from being applied to UnityEngine.Object references since they are shown as an object field, and is not drawn in-line.
public override bool CanDrawTypeFilter(Type type)
Parameters
System.Type type

Returns
System.Boolean

CanDrawValueProperty(InspectorProperty)
protected override bool CanDrawValueProperty(InspectorProperty property)
Parameters
InspectorProperty property

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