void ReferenceTimeGUI() { EditorGUI.BeginChangeCheck(); var rect = EditorGUILayout.GetControlRect(false, EditorGUI.kSingleLineHeight, EditorStyles.toolbarButton, GUILayout.Width(WindowConstants.refTimeWidth)); state.timeReferenceMode = (TimeReferenceMode)EditorGUI.CycleButton(rect, (int)state.timeReferenceMode, k_TimeReferenceGUIContents, EditorStyles.toolbarButton); if (EditorGUI.EndChangeCheck()) { OnTimeReferenceModeChanged(); } }