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

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.