We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a06c2e commit 715def5Copy full SHA for 715def5
Editor/Elements/TriPropertyElement.cs
@@ -58,8 +58,18 @@ public override void OnGUI(Rect position)
58
EditorGUI.showMixedValue = _property.IsValueMixed;
59
var overrideCtx = TriPropertyOverrideContext.BeginProperty();
60
61
+ if (_property.TryGetSerializedProperty(out var serializedProperty))
62
+ {
63
+ EditorGUI.BeginProperty(position, null, serializedProperty);
64
+ }
65
+
66
base.OnGUI(position);
67
68
+ if (_property.TryGetSerializedProperty(out _))
69
70
+ EditorGUI.EndProperty();
71
72
73
overrideCtx.EndProperty();
74
EditorGUI.showMixedValue = oldShowMixedValue;
75
GUI.enabled = oldEnabled;
0 commit comments