Esempio n. 1
0
 protected virtual void OnDisable()
 {
     graph.onExposedParameterListChanged -= UpdateExposedParameters;
     graph.onExposedParameterModified    -= UpdateExposedParameters;
     exposedParameterFactory?.Dispose(); //  Graphs that created in GraphBehaviour sometimes gives null ref.
     exposedParameterFactory = null;
 }
Esempio n. 2
0
 protected virtual void OnEnable()
 {
     graph = target as BaseGraph;
     graph.onExposedParameterListChanged += UpdateExposedParameters;
     graph.onExposedParameterModified    += UpdateExposedParameters;
     if (exposedParameterFactory == null)
     {
         exposedParameterFactory = new ExposedParameterFieldFactory(graph);
     }
 }