Exemplo n.º 1
0
        public void BreadcrumbGUI()
        {
            float breadcrumbsHeight = 18f;
            float verticalOffset    = Mathf.Floor((BreadcrumbBar.DefaultStyles.background.fixedHeight - breadcrumbsHeight) / 2f);

            SetupBreadCrumbBarIfNeeded();
            using (new GUILayout.VerticalScope(BreadcrumbBar.DefaultStyles.background))
            {
                GUILayout.Space(verticalOffset);
                using (new EditorGUILayout.HorizontalScope(GUILayout.Height(breadcrumbsHeight)))
                {
                    m_BreadcrumbBar.OnGUI();
                    AutoSaveButtons();
                }
            }
        }
        public void BreadcrumbGUI()
        {
            float breadcrumbsHeight = 17f;
            float verticalOffset    = Mathf.Floor((BreadcrumbBar.DefaultStyles.background.fixedHeight - breadcrumbsHeight) / 2f);

            SetupBreadCrumbBarIfNeeded();
            using (new GUILayout.VerticalScope(BreadcrumbBar.DefaultStyles.background))
            {
                GUILayout.Space(verticalOffset - 1);
                using (new EditorGUILayout.HorizontalScope(GUILayout.Height(breadcrumbsHeight)))
                {
                    m_BreadcrumbBar.OnGUI();
                    GUILayout.Space(10f);
                    currentStage.OnControlsGUI(m_SceneView);
                }
            }
        }