Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
quick:debug [2018/05/29 11:35] – pedro | quick:debug [2018/05/29 12:49] – pedro | ||
---|---|---|---|
Line 37: | Line 37: | ||
While in debug mode it is possible to inspect the value of the parameters of a running tree or the parameters of a particular node in a running tree. The `Blackboard` tab shows the parameters of the selected tree in a given entity (previously selected in the `Debug` tab): | While in debug mode it is possible to inspect the value of the parameters of a running tree or the parameters of a particular node in a running tree. The `Blackboard` tab shows the parameters of the selected tree in a given entity (previously selected in the `Debug` tab): | ||
- | {{ : | + | {{ : |
and for a running tree, by clicking on one of its node it is possible to inspect the node parameters: | and for a running tree, by clicking on one of its node it is possible to inspect the node parameters: | ||
- | {{ : | + | {{ : |
- | + | ||
- | With this feature you can pause the execution of the game when a node for a concrete behavior tree of a specific entity reach one of the following states: | + | ### Breakpoints |
- | - Success | + | Behavior Bricks also features a simple type of breakpoint that allows to pause the execution of the scene whenever a given condition is reached in a particular node of a behavior tree in a given entity. |
- | - Failed | + | |
- | - Aborted | + | |
- | - Launched | + | |
- | To add a breakpoint you just need to right click in a node and select `Add Breakpoint`: | + | In order to set a breakpoint you just need to right click in a node and select `Add Breakpoint`, and this can be done while in edit or play mode of the Unity editor: |
- | ![Adding a breakpoint](images/ | + | {{ :images: |
- | You can configure what events the breakpoint should be triggered | + | Then, in the `Node` tab, it is possible to select the event(s) triggered |
- | ![Breakpoint events](images/ | + | {{ :images: |
- | In case all events are unmarked | + | Finally, for the breakpoint |
- | ![Disabled | + | A node with a breakpoint |
- | Remeber that a breakpoint can only be triggered when: | + | {{ :images: |
- | - You are on Play Mode | ||
- | - Behavior Bricks Editor is open | ||
- | - A valid entity is selected | ||
- | - The behavior that contains the node with the breakpoint attached is open, but you don´t need the behavior to be the active tab. | ||
- | ![Triggered breakpoint](images/ | ||