diff --git a/Editor.Extras/Drawers/BuiltinDrawerBase.cs b/Editor.Extras/Drawers/BuiltinDrawerBase.cs index 99cb1a0..baafe31 100644 --- a/Editor.Extras/Drawers/BuiltinDrawerBase.cs +++ b/Editor.Extras/Drawers/BuiltinDrawerBase.cs @@ -36,7 +36,7 @@ public sealed override void OnGUI(Rect position, TriValue propertyValue, TriE if (EditorGUI.EndChangeCheck()) { - propertyValue.SmartValue = value; + propertyValue.SetValue(value); } } diff --git a/Editor.Extras/Drawers/ObjectReferenceDrawer.cs b/Editor.Extras/Drawers/ObjectReferenceDrawer.cs index f8f3f7a..e77dc1e 100644 --- a/Editor.Extras/Drawers/ObjectReferenceDrawer.cs +++ b/Editor.Extras/Drawers/ObjectReferenceDrawer.cs @@ -46,7 +46,7 @@ public override void OnGUI(Rect position) if (EditorGUI.EndChangeCheck()) { - _propertyValue.SmartValue = value; + _propertyValue.SetValue(value); } } } diff --git a/Editor/TriValue.cs b/Editor/TriValue.cs index 862c80b..2fb0d93 100644 --- a/Editor/TriValue.cs +++ b/Editor/TriValue.cs @@ -33,5 +33,11 @@ public T SmartValue Property.SetValue(value); } } + + [PublicAPI] + public void SetValue(T value) + { + Property.SetValue(value); + } } } \ No newline at end of file