public static GraphSaveUtility GetInstance(ScriptableGraphView graphView) { return(new GraphSaveUtility { _graphView = graphView }); }
protected virtual void ConstructGraphView() { _graphView = new ScriptableGraphView(this) { name = "ScriptableGraphWindow", }; _graphView.StretchToParentSize(); rootVisualElement.Add(_graphView); }
public void Configure(EditorWindow window, ScriptableGraphView graphView) { _window = window; _graphView = graphView; //Transparent 1px indentation icon as a hack _indentationIcon = new Texture2D(1, 1); _indentationIcon.SetPixel(0, 0, new Color(0, 0, 0, 0)); _indentationIcon.Apply(); }