public void OpenBehaviorEditor(GameObject go) { if (go == null) { return; } selectNodeName = ""; CurTreeGO = go; this.NewLoadPrefabTree(); BTEditorWindow.ShowWindow(); Game.EventSystem.Run(EventIdType.BehaviorTreeOpenEditor); }
public static void ShowWindow() { BTEditorWindow target = GetWindow <BTEditorWindow>("行为树编辑器", false); target.minSize = new Vector2(600f, 500f); }