void SetupWindow() { if (ScriptDataService == null) { ScriptDataService = new ConstellationEditorDataService(); ScriptDataService.Initialize(); } if (NodeTabPanel == null) { NodeTabPanel = new ConstellationsTabPanel(); } if (NodeSelector == null) { SetupNodeSelector(); } }
public void OnEnable() { EditorApplication.playModeStateChanged += OnPlayStateChanged; if (NodeSelector == null) { NodeSelector = new NodeSelectorPanel(/*, scriptDataService.GetAllCustomNodesNames()*/); NodeSelector.SetupNamespaceData(); } if (ScriptDataService == null) { ScriptDataService = new ConstellationEditorDataService(); ScriptDataService.Initialize(); } if (NodeTabPanel == null) { NodeTabPanel = new ConstellationsTabPanel(); } }
public void OnEnable() { EditorApplication.playModeStateChanged += OnPlayStateChanged; UnityEditor.Undo.undoRedoPerformed += OnUndoPerformed; if (ScriptDataService == null) { ScriptDataService = new ConstellationEditorDataService(); ScriptDataService.Initialize(); } if (NodeTabPanel == null) { NodeTabPanel = new ConstellationsTabPanel(); } if (NodeSelector == null) { SetupNodeSelector(); } }