ReferenceDrawer<T>

Draws all reference type properties, which has already been drawn elsewhere. This drawer adds an additional foldout to prevent infinite draw depth.

namespace Sirenix.OdinInspector.Editor.Drawers
{
[Sirenix.OdinInspector.Editor.AllowGUIEnabledForReadonlyAttribute]
[Sirenix.OdinInspector.Editor.DrawerPriorityAttribute(90, 0, 0)]
public sealed class ReferenceDrawer<T> : OdinValueDrawer<T>
}

Requirements

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Methods

Return Type Definition Description
bool 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.
void DrawPropertyLayout(GUIContent) Draws the property.