private void OnEnable() { if (_editor == null) { _editor = new GraphViewEditor(this); rootVisualElement.Add(_editor); if (_graph != null) { _editor.SetGraph(_graph); } } }
private void OnDisable() { _graph = _editor.CurrentGraph; _editor = null; }
private void OnEnable() { if (_editor == null) { _editor = new GraphViewEditor(this); rootVisualElement.Add(_editor); if (_graph != null) { _editor.SetGraph(_graph); } } }
private void OnDisable() { _graph = _editor.CurrentGraph; _editor = null; }