void OnNewGraphButton() { var bb = ConsoleWindowBridge.FindBoundGraphViewToolWindow <GraphViewBlackboardWindow>(m_GraphView); if (bb != null) { bb.Close(); } EditorWindow.GetWindow <VseWindow>().UnloadGraph(); }
void ShowGraphViewToolWindow <T>() where T : GraphViewToolWindow { var existingToolWindow = ConsoleWindowBridge.FindBoundGraphViewToolWindow <T>(m_GraphView); if (existingToolWindow == null) { ConsoleWindowBridge.SpawnAttachedViewToolWindow <T>(m_GraphView.window, m_GraphView); } else { existingToolWindow.Focus(); } }