コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }