/// <summary> /// Show this window in the scene viewport. /// </summary> public void Show() { m_size = GetWindowSize(); m_title = GetWindowTitle(); SceneWindowLayout.Add(this); SceneView.onSceneGUIDelegate += OnSceneGUI; }
/// <summary> /// Closes this window and removes it from scene viewport. /// </summary> public void Close() { SceneWindowLayout.Remove(this); SceneView.onSceneGUIDelegate -= OnSceneGUI; }