public static GraphSaveLoad GetInstance(DialogueGV targetGV) { return(new GraphSaveLoad { _targetGV = targetGV }); }
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); }