private void DoOneMode(Rect rect, int index) { EditorGUI.BeginChangeCheck(); GUI.Toggle(rect, currentMode == index, EditorGUIUtility.TempContent(s_PlatformModes[index]), Styles.menuItem); if (EditorGUI.EndChangeCheck()) { currentMode = index; } }