private void OnDestroy()
        {
            #if UNITY_EDITOR
            GraphVisualizerClient.Hide(_graph);
            #endif

            _graph.Destroy();
        }
        public void SetVizualizerName(string newName, bool forceShowInVisualizer = false)
        {
            if (forceShowInVisualizer)
            {
                showInVisualizer = true;
            }

            if (showInVisualizer)
            {
                GraphVisualizerClient.Hide(graph);
                GraphVisualizerClient.Show(graph, newName);
            }
        }
    public void CanHideGraph()
    {
        var graph1 = CreatePlayableGraph("test1");
        var graph2 = CreatePlayableGraph("test2");

        GraphVisualizerClient.Show(graph1);
        GraphVisualizerClient.Show(graph2);
        var graphs = GraphVisualizerClient.GetGraphs().ToArray();

        Assert.That(graphs.Length, Is.EqualTo(2));
        Assert.That(graphs[0].GetEditorName(), Is.EqualTo(graph1.GetEditorName()));
        Assert.That(graphs[1].GetEditorName(), Is.EqualTo(graph2.GetEditorName()));

        GraphVisualizerClient.Hide(graph1);
        graphs = GraphVisualizerClient.GetGraphs().ToArray();

        Assert.That(graphs.Length, Is.EqualTo(1));
        Assert.That(graphs[0].GetEditorName(), Is.EqualTo(graph2.GetEditorName()));

        graph1.Destroy();
        graph2.Destroy();
    }