public void Init(CoreGraphView graphView, EditorWindow window, GraphData data) { _graphView = graphView; _window = window; _data = data; _indentationIcon = new Texture2D(1, 1); _indentationIcon.SetPixel(0, 0, new Color(0, 0, 0, 0)); _indentationIcon.Apply(); }
void LoadGraphView() { // Create GraphView graphView = new CoreGraphView(this) { name = "Dialogue Graph" }; graphView.LoadData(currentData); // Add Visual Behaviours graphView.StretchToParentSize(); // Load GraphView to root view rootVisualElement.Add(graphView); // Add Function to graphView //graphView.GenerateMiniMap(); graphView.GenerateBlackBoard(currentData); }