コード例 #1
0
 public static GraphSaveUtility GetInstance(FRPGraphView targetGraphView)
 {
     return(new GraphSaveUtility
     {
         _targetGraphView = targetGraphView
     });
 }
コード例 #2
0
    public void Init(EditorWindow window, FRPGraphView graphView)
    {
        _window    = window;
        _graphView = graphView;

        _indentationIcon = new Texture2D(1, 1);
        _indentationIcon.SetPixel(0, 0, new Color(0, 0, 0, 0));
        _indentationIcon.Apply();
    }
コード例 #3
0
    private void ConstructGraphView()
    {
        _graphView = new FRPGraphView(this)
        {
            name = "FRP Graph"
        };

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