void OnGUI() { //right GUILayout.BeginVertical(); GUILayout.Space(4); int colLimit = (int)Mathf.Min(mTitles.Length, position.width / 200f); tab = QuickGUI.HTabBar(tab, 20, colLimit, mTitles); GUILayout.Space(3); GUILayout.BeginHorizontal("TextArea"); if (tab >= 0 && tab < mPages.Length) { mPages[tab].OnGUI(); } GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.Label("STATUS", GUILayout.Width(50)); mPages[tab].OnStatusGUI(); GUILayout.EndHorizontal(); GUILayout.EndVertical(); }