Beispiel #1
0
 public void Init(ScriptGraphView scriptGraphView, ScriptGraphWindow scriptGraphWindow, Action <ScriptGraphNode> onCreated, Action <ScriptGraphNode> onNodeContentChanged)
 {
     _graphView                = scriptGraphView;
     _window                   = scriptGraphWindow;
     this.onCreated            = onCreated;
     this.onNodeContentChanged = onNodeContentChanged;
 }
        public void Open(ScriptGraphAsset scriptGraphAsset)
        {
            this.scriptGraphAsset = scriptGraphAsset;

            graphView = new ScriptGraphView(this);
            this.rootVisualElement.Add(graphView);

            this.Show();
        }