コード例 #1
0
        private void SwitchView(Subview fromView, Subview toView)
        {
            GUI.FocusControl(null);

            if (fromView != null)
            {
                fromView.OnDisable();
            }
            toView.OnEnable();

            // this triggers a repaint
            Parent.Redraw();
        }
コード例 #2
0
        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();
        }