private void SwitchView(Subview fromView, Subview toView) { GUI.FocusControl(null); if (fromView != null) { fromView.OnDisable(); } toView.OnEnable(); // this triggers a repaint Parent.Redraw(); }
private void SwitchView(Subview fromView, Subview toView) { GUI.FocusControl(null); if (fromView != null) { fromView.OnDisable(); } toView.OnEnable(); titleContent = new GUIContent(ActiveView.Title, Styles.SmallLogo); // this triggers a repaint Repaint(); }