private void OnGUISubEditor() { EditorGUILayout.BeginVertical("box", GUILayout.ExpandWidth(true)); { eViewType newState = (eViewType)GUILayout.Toolbar((int)m_viewType, System.Enum.GetNames(typeof(eViewType))); if (m_viewType != newState) { SetViewer(newState); } EditorGUILayout.BeginVertical("box"); { wantsMouseMove = true; if (m_currentSubCharacterViewer != null) { m_currentSubCharacterViewer.OnGUI(); } } EditorGUILayout.EndVertical(); } EditorGUILayout.EndVertical(); }