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