Editor, I want to get tree information

toon88

New member
When I click a button in my custom inspector, I want to open the tree in the inspector I set up in the BehaviorTree editor.
What should I do with the script??

I opened the editor with BehaviorDesignerWindow.ShowWindow();
I want to open while importing BehabiorTree information.
I tried with BehaviorDesignerWindow.instance.LoadBehavior(), but I can't get it.
 
Are you trying to open the Behavior Designer editor from your own script? You can do that with:
Code:
                BehaviorDesignerWindow.ShowWindow();
                BehaviorDesignerWindow.instance.LoadBehavior(behavior.GetBehaviorSource(), false, true);
 
Top