Example #1
0
 public static GraphSaveUtility Instance(DialogueGraphView _targetGraphView)
 {
     return(new GraphSaveUtility
     {
         targetGraphView = _targetGraphView
     });
 }
 public void Init(EditorWindow _editorWindow, DialogueGraphView _graphView)
 {
     graphView       = _graphView;
     editorWindow    = _editorWindow;
     indentationIcon = new Texture2D(1, 1);
     indentationIcon.SetPixel(0, 0, new Color(0, 0, 0, 0));
     indentationIcon.Apply();
 }
        private void ConstructGraphView()
        {
            graphView = new DialogueGraphView(this)
            {
                name = "Dialogue Graph"
            };

            graphView.StretchToParentSize();
            rootVisualElement.Add(graphView);
        }