コード例 #1
0
        public static void ShowWindow()
        {
            BTEditorWindow bTreeEditorWindow = GetWindow(typeof(BTEditorWindow)) as BTEditorWindow;

            bTreeEditorWindow.titleContent   = new GUIContent("行为树编辑器");
            bTreeEditorWindow.mIsFirst       = true;
            bTreeEditorWindow.wantsMouseMove = true;
            bTreeEditorWindow.minSize        = new Vector2(600f, 500f);
            DontDestroyOnLoad(bTreeEditorWindow);

            BTEditorNodeFactory.Init();
        }
コード例 #2
0
 public BTEditorGenericMenuBase(BTEditorWindow _window)
 {
     mMenu   = new GenericMenu();
     mWindow = _window;
 }
コード例 #3
0
 public BTEditorRightClickNodeMenu(BTEditorWindow _window)
     : base(_window)
 {
 }
コード例 #4
0
 public BTEditorRightClickBlockMenu(BTEditorWindow _window)
     : base(_window)
 {
     Init();
 }