public static GraphSaveLoad GetInstance(DialogueGV targetGV)
 {
     return(new GraphSaveLoad
     {
         _targetGV = targetGV
     });
 }
Exemplo n.º 2
0
    private void ConstructGV()
    {
        //instance of dialogue gv
        _graphView = new DialogueGV
        {
            //name of this instance
            name = "DialogueGraph"
        };

        _graphView.StretchToParentSize();
        //adding graph window to unity work space window
        rootVisualElement.Add(_graphView);
    }