Version 3.3.1.2

ReferenceValueConflictDrawer<T> class

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

When multiple objects are selected and inspected, this his drawer ensures UnityEditor.EditorGUI.showMixedValue gets set to true if there are any conflicts in the selection for any given property. Otherwise the next drawer is called.

This drawer also implements Sirenix.OdinInspector.Editor.IDefinesGenericMenuItems and provides a right-click context menu item for resolving conflicts if any.

Inheritance

Type Parameters

T

Constructors

ReferenceValueConflictDrawer()
public ReferenceValueConflictDrawer()

Methods

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