Example #1
0
 /// <summary>
 /// Called by Unity when the window is disabled (happens on domain reload)
 /// </summary>
 protected virtual void OnDisable()
 {
     if (graph != null && graphView != null)
     {
         graphView.SaveGraphToDisk();
     }
 }
 /// <summary>
 /// Called by Unity when the window is disabled (happens on domain reload)
 /// </summary>
 protected virtual void OnDisable()
 {
     if (graph != null && graphView != null)
     {
         graphView.SaveGraphToDisk();
         // Unload the graph
         graphUnloaded?.Invoke(this.graph);
     }
 }