Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision |
design [2018/05/17 20:52] – pedro | design [2018/05/17 21:01] – pedro |
---|
<h2 id="debug-mode-and-execution-flow-visualization">Debug mode and execution flow visualization</h2> | <h2 id="debug-mode-and-execution-flow-visualization">Debug mode and execution flow visualization</h2> |
<p>The Behavior Bricks editor enters debug mode automatically when playing a scene in the Unity editor, substituting the <code>Behavior</code> tab of the Behavior Bricks editor with the <code>Debug</code> tab, as shown in the Figure:</p> | <p>The Behavior Bricks editor enters debug mode automatically when playing a scene in the Unity editor, substituting the <code>Behavior</code> tab of the Behavior Bricks editor with the <code>Debug</code> tab, as shown in the Figure:</p> |
<img src="http://bb.padaonegames.com/images/DebugModeQuickStartGuide/debug.png" title="Debug tab" alt="Debug tab" /> | <p><img src="http://bb.padaonegames.com/images/DebugModeQuickStartGuide/debug.png" title="Debug tab" alt="Debug tab" width="100%"/></p> |
<p class="caption">Debug tab</p> | |
<p>To watch the execution flow for a particular behavior tree of a given entity in the scene, you must open the behavior tree in the Behavior Bricks editor, and select the entity to debug in the Unity´s <code>Hierarchy</code> panel. Alternatively, the entity can be selected in the <code>Debug</code> tab, by first clicking on the <code>Refresh List</code> button and then clicking on the entity name. The <code>Debug</code> tab shows a list of the entities in the scene being played which contain a <code>Behavior Executor</code> component, grouped by the behavior assigned, as shown in the Figure:</p> | <p>To watch the execution flow for a particular behavior tree of a given entity in the scene, you must open the behavior tree in the Behavior Bricks editor, and select the entity to debug in the Unity´s <code>Hierarchy</code> panel. Alternatively, the entity can be selected in the <code>Debug</code> tab, by first clicking on the <code>Refresh List</code> button and then clicking on the entity name. The <code>Debug</code> tab shows a list of the entities in the scene being played which contain a <code>Behavior Executor</code> component, grouped by the behavior assigned, as shown in the Figure:</p> |
<div class="figure"> | <p><img src="http://bb.padaonegames.com/images/DebugModeQuickStartGuide/debug_entity.png" title="Debug tab" alt="Debug tab" width="100%"/></p> |
<img src="images/DebugModeQuickStartGuide/debug_entity.png" title="Entity selection" alt="Debug tab" /> | |
<p class="caption">Debug tab</p> | |
</div> | |
<p>Once the behavior and the entity have been selected, the state of each node is depicted by changing the color of its bounding box:</p> | <p>Once the behavior and the entity have been selected, the state of each node is depicted by changing the color of its bounding box:</p> |
<ul> | <ul> |
<p class="caption">Resume or Tick</p> | <p class="caption">Resume or Tick</p> |
</div> | </div> |
<p>Also you can pause and resume all the entities which uses a behavior by pressing the corresponding <code>Resume all</code> and <code>Pause all</code> buttons.</p> | <p>It is also possible to pause and resume all the entities that use a given behavior by pressing the corresponding <code>Resume all</code> or <code>Pause all</code> button.</p> |
<h2 id="blackboard-parameters-value">Blackboard parameters value</h2> | <h2 id="watching-the-blackboard-and-node-parameters">Watching the blackboard and node parameters</h2> |
<p>In order to see the current values of the blackboard parameters for a concrete behavior of an entity you must:</p> | <p>In order to see the current values of the blackboard parameters for a concrete behavior of an entity you must:</p> |
<ul> | <ul> |