ReferenceValueConflictDrawer<T>

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 IDefinesGenericMenuItems and provides a right-click context menu item for resolving conflicts if any.

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

Requirements

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

Methods

Return Type Definition Description
void DrawPropertyLayout(GUIContent) Draws the property.