Version 2.1.0.0

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

DrawPropertyLayout(GUIContent)
Draws the property.
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

Extension Methods