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.
public ReferenceValueConflictDrawer()
protected override bool CanDrawValueProperty(InspectorProperty property)
InspectorProperty | property |
System.Boolean |
protected override void DrawPropertyLayout(GUIContent label)
UnityEngine.GUIContent | label |
protected override void Initialize()