예제 #1
0
        /// <summary>
        /// Show this window in the scene viewport.
        /// </summary>
        public void Show()
        {
            m_size  = GetWindowSize();
            m_title = GetWindowTitle();

            SceneWindowLayout.Add(this);
            SceneView.onSceneGUIDelegate += OnSceneGUI;
        }
예제 #2
0
 /// <summary>
 /// Closes this window and removes it from scene viewport.
 /// </summary>
 public void Close()
 {
     SceneWindowLayout.Remove(this);
     SceneView.onSceneGUIDelegate -= OnSceneGUI;
 }