Пример #1
0
        public void End()
        {
            m_Windows.Sort();

            if (m_Windows.Count > 0)
            {
                Rect sceneViewGUIRect  = m_SceneView.cameraRect;
                Rect windowOverlayRect = new Rect(sceneViewGUIRect.x, 0f, sceneViewGUIRect.width, m_SceneView.position.height);
                GUILayout.Window("SceneViewOverlay".GetHashCode(), windowOverlayRect, WindowTrampoline, "", Styles.sceneViewOverlayTransparentBackground);
            }

            m_SceneView.EndWindows();
        }
        public void End()
        {
            if (!m_SceneView.m_ShowSceneViewWindows)
            {
                return;
            }

            m_Windows.Sort();

            if (m_Windows.Count > 0)
            {
                m_WindowRect.x      = 0;
                m_WindowRect.y      = 0;
                m_WindowRect.width  = m_SceneView.position.width;
                m_WindowRect.height = m_SceneView.position.height;
                m_WindowRect        = GUILayout.Window("SceneViewOverlay".GetHashCode(), m_WindowRect, WindowTrampoline, "", "SceneViewOverlayTransparentBackground");
            }

            m_SceneView.EndWindows();
        }