Version 3.3.0.1

PrimitiveValueConflictDrawer<T> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
[DrawerPriority(0.5, 0, 0)]
[AllowGUIEnabledForReadonly]
public sealed class PrimitiveValueConflictDrawer<T> : OdinValueDrawer<T>, IDefinesGenericMenuItems
Evaluates all strings, enums and primitive types and ensures EditorGUI.showMixedValue is true if there are any value conflicts in the current selection.
Inheritance

Type Parameters

T

Constructors

PrimitiveValueConflictDrawer()
public PrimitiveValueConflictDrawer()

Methods

CanDrawTypeFilter(Type)
Sets the drawer to only be evaluated on primitive types, strings and enums.
public override bool CanDrawTypeFilter(Type type)
Parameters
System.Type type

Returns
System.Boolean

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

Extension Methods