private void DrawNodeWindow() { if (_window == null) { _window = EditorWindow.GetWindow <BTEditorWindow>(); } subWindow_Rect = GUI.Window(22, new Rect(_window.position.width * 2 / 3, 0, _window.position.width / 3, _window.position.height), DrawSubUI, _subTitle); }
public static void ShowWindow() { if (_window == null) { _window = EditorWindow.GetWindow <BTEditorWindow>(); } Reset(); Vector2 initPosition = new Vector2(10, _window.position.height / 2 - 25); //BaseNode root = BTEditorManager.AddRootNode(initPosition); NodeDataManager.Reset(); BTEditorManager.Reset(); }
public static void OnClickConnection(Connection connection) { selectedConnection = connection; BTEditorWindow.UpdateSubWindow(selectedConnection); }
public static void OnClickNode(BaseNode node) { selectedNode = node; BTEditorWindow.UpdateSubWindow(selectedNode); }