-
Notifications
You must be signed in to change notification settings - Fork 21
BehaviourTreeEditor
- Navigation History - You can use it to "go back" when editing subtrees.
- Options Menu - Here you can create new behaviour trees, open existing ones or save the one you are currently editing.
- The Canvas - Here you can edit the behaviour tree.
- Footer - Here you can see what file you are currently editing.
To select a single node, left-click on it. To select multiple nodes, left-click in an empty area of the canvas and drag the selection box over the nodes you want to select. If you hold Left Shift and left-click on a Composite or Decorator node it will select the entire tree brach.
To add a new node, right-click on a Composite or Decorator node to open the context menu and choose a node type from the Add Child sub-menu.
To delete a node, right-click on it to open the context menu and select Delete. If the node is a Composite or Decorator you will have an extra option named Delete Children or Delete Child(depending on the node type) which as the name suggest will only remove the node's children.
To copy a node, right-click on it to open the context menu and select Copy then right click on a Composite or Decorator node and select Paste. If you copy a Composite or Decorator node, all it's children will be copied as well.
To undo or redo an operation, right-click on an empty area of the canvas to open the context menu and select Undo or Redo.
To set a breakpoint, right-click on a node to open the context menu and choose a breakpoint type from the Breakpoint sub-menu. You can have multiple breakpoints per node. Hitting a breakpoint will pause the editor.
To remove all breakpoints, right-click on an empty area of the canvas to open the context menu and select Delete All Breakpoints.
To add a sub-tree, create a Run Behaviour node and assign a behaviour tree to it. To open a sub-tree, double-click on the Run Behaviour node or press the Open button in the inspector. To go back to the previous behaviour tree use the navigation bar at the top of the editor window.
To expand a Node Group double-click on the node or press the Expand button in the inspector. To collapse a Node Group double-click the node again or press the Collapse button in the inspector.
For more information on what Constraints and Services are see this page.
To add a new Constraint to a node, click on the gear icon near the title of the node in the inspector panel and select a Constraint type from the Add Constraint sub-menu.
- Collapse/Expand - Clicking this foldout will hide or show the Constraint's properties.
- Invert - If this toggle is enabled, the Constraint's result will be inverted.
- Context Menu - Clicking this button will open up a context menu with the following options:
- Move Up - Moves the Constraint up one position in the stack. Constraints are executed from top to bottom.
- Move Down - Moves the Constraint down one position in the stack. Constraints are executed from top to bottom.
- Remove - Will delete the Constraint.
To add a new Service to a node, click on the gear icon near the title of the node in the inspector panel and select a Service type from the Add Service sub-menu.
- Collapse/Expand - Clicking this foldout will hide or show the Service's properties.
- Context Menu - Clicking this button will open up a context menu with the following options:
- Move Up - Moves the Service up one position in the stack. Services are executed from top to bottom.
- Move Down - Moves the Service down one position in the stack. Services are executed from top to bottom.
- Remove - Will delete the Service.