public static EditorNodeCreator GetCreateor(ActionGraphView graphView) { if (_createor == null) { _createor = ScriptableObject.CreateInstance <EditorNodeCreator>(); _createor.hideFlags = HideFlags.HideAndDontSave; } _createor._graphView = graphView; return(_createor); }
void RefreshView() { if (_graphView == null) { _graphView = new ActionGraphView(this); rootVisualElement.Add(_graphView); } if (GraphAsset != null) { _graphView.Show(GraphAsset); } }