.. _pathDebug: Path Debug ============ .. contents:: :local: .. _pathDebugger: Path Debugger ------------ `Youtube tutorial. `_ How To Open ~~~~~~~~~~~~ In the scene, select: `CityDebugger/PathDebugger` Settings ~~~~~~~~~~~~ .. image:: /images/debuggers/path/PathDebugger.png | **Draw editor traffic path** : on/off :ref:`path ` visualisation in the scene in `Editor`. **Draw entity traffic path** : on/off entity :ref:`path ` visualisation in the scene at runtime. * **Draw entity traffic node connection** : on/off draw :ref:`TrafficNode ` entity connection debug at runtime. .. _pathDataViewer: Path Data Viewer ------------ Tool for quick visualisation of :ref:`path ` parameters. How To Open ~~~~~~~~~~~~ In the `Unity` toolbar: `Spirit604/CityEditor/Window/Path Data Viewer` .. image:: /images/debuggers/path/PathDataViewerOpenExample.png How To Use ~~~~~~~~~~~~ #. Select :ref:`Path view type `. #. In the :ref:`Colors info ` tab, press `-` to hide the paths with the selected option. #. Press `+` to display the hidden path with the selected option again. #. Press `x` to reset saved color of the parameter. .. _pathDataViewerSettings: Settings ~~~~~~~~~~~~ .. image:: /images/debuggers/path/PathDataViewer.png | **Default color** : default :ref:`path ` color. **Path view type:** selected :ref:`parameter ` for visualisation (:ref:`examples `) * **Speed limit** : speed limit of the :ref:`paths . * **Priority** : priority of the :ref:`paths . * **Path type** : path type of the :ref:`paths . * :ref:`Traffic path group ` : :ref:`traffic group ` of the :ref:`paths . * :ref:`Traffic path node group ` : :ref:`traffic group ` of the :ref:`waypoints ` * **Node direction** : node direction (forward or backward) of the :ref:`waypoints ` in the :ref:`paths `. * **Arrow light** : shows the :ref:`paths ` with the assigned custom light. * **Rail** : shows the :ref:`paths ` with the :ref:`rail ` parameter. | **Draw custom colors** : on/off custom colors of the :ref:`paths ` in the scene. | **Show world buttons** : show world :ref:`path ` selection buttons. | **Show intersect point** : on/off visual :ref:`intersection points ` in the scene. | **Show waypoints** : on/off :ref:`waypoints ` of the :ref:`path ` in the scene. | **Show path handles** : on/off :ref:`path ` position handles of the selected path. | **Show path edit buttons** : on/off :ref:`path ` edit buttons of the selected path. | **Multiple selection** : on/off feature to select multiple :ref:`paths ` at the same time (useful for setting the same value for multiple :ref:`paths `). | **Show unselect buttons** : show unselect button for already selected :ref:`paths ` in multiple selection mode. | **Refresh** : update :ref:`path ` data in the viewer. .. _pathDataViewerExamples: Examples ~~~~~~~~~~~~ .. image:: /images/debuggers/path/PathDataViewerPathTypeExample.png `Path type example.` .. image:: /images/debuggers/path/PathDataViewerPriorityExample.png `Priority path example.` .. image:: /images/debuggers/path/PathDataViewerSpeedLimit.png `Speed limit path example.` Path Index Debugger ------------ How To Open ~~~~~~~~~~~~ In the scene, select: `CityDebugger/PathDebugger` Settings ~~~~~~~~~~~~ .. image:: /images/debuggers/path/Runtime/PathIndexDebugger.png | **Should debug** : on/off debugger. | **Select path** : on/off path selection settings. | **Selected path index** : display the data for the selected path (-1 path is not selected). **Path debug mode** : * **Default** : only the current path index is shown. * **Parallel** : parallel path indexes. * **Neighbor paths** : neighbor path indexes (paths that start from the same point). * **Next connected paths** : indexes to which the current path is connected. * **Intersected paths** : intersection paths indexes. * **Car count** : number of cars with the current path index. Index example: * 543 (544, 545, 546) - current path index is 543. Other relevant path indexes, depending on the chosen `Path debug mode`. Examples ~~~~~~~~~~~~ .. image:: /images/debuggers/path/Runtime/PathIndexDebuggerExample1.png `Default "Path debug mode" example`. .. image:: /images/debuggers/path/Runtime/PathIndexDebuggerExample2.png `Parallel paths "Path debug mode" example`.