diff --git a/Editor/UIExtensionsMenuOptions.cs b/Editor/UIExtensionsMenuOptions.cs index 310a0bf..57af6ec 100644 --- a/Editor/UIExtensionsMenuOptions.cs +++ b/Editor/UIExtensionsMenuOptions.cs @@ -1660,14 +1660,18 @@ namespace UnityEditor.UI SegmentedControl control = go.AddComponent(); Color selectedColor = new Color(0f, 0.455f, 0.894f); - control.selectedColor = selectedColor; var labels = new string[] { "This", "That", "Other" }; for (int i = 0; i < 3; i++) { - var button = AddButtonAsChild(go); + var button = AddButtonAsChild(go).GetComponent