Path Debug

Path Debugger

Youtube tutorial.

How To Open

In the scene, select:

CityDebugger/PathDebugger

Settings

_images/PathDebugger.png
Draw editor traffic path : on/off path visualisation in the scene in Editor.
Draw entity traffic pathon/off entity path visualisation in the scene at runtime.
  • Draw entity traffic node connection : on/off draw TrafficNode entity connection debug at runtime.

Draw pedestrian connection path : on/off PedestrianNode connection visualisation in the scene in the Editor.

Path Data Viewer

Tool for quick visualisation of path parameters.

How To Open

In the Unity toolbar:

Spirit604/CityEditor/Window/Path Data Viewer

_images/PathDataViewerOpenExample.png

How To Use

  1. Select Path view type.

  2. In the Colors info tab, press - to hide the paths with the selected option.

  3. Press + to display the hidden path with the selected option again.

  4. Press x to reset saved color of the parameter.

Settings

_images/PathDataViewer.png
Default color : default path color.
Path view type: selected parameter for visualisation (examples)
Draw custom colors : on/off custom colors of the paths in the scene.
Show world buttons : show world path selection buttons.
Show intersect point : on/off visual intersection points in the scene.
Show waypoints : on/off waypoints of the path in the scene.
Show path handles : on/off path position handles of the selected path.
Show path edit buttons : on/off path edit buttons of the selected path.
Multiple selection : on/off feature to select multiple paths at the same time (useful for setting the same value for multiple paths).
Show unselect buttons : show unselect button for already selected paths in multiple selection mode.
Refresh : update path data in the viewer.

Examples

_images/PathDataViewerPathTypeExample.png

Path type example.

_images/PathDataViewerPriorityExample.png

Priority path example.

_images/PathDataViewerSpeedLimit.png

Speed limit path example.

Path Index Debugger

How To Open

In the scene, select:

CityDebugger/PathDebugger

Settings

_images/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

_images/PathIndexDebuggerExample1.png

Default “Path debug mode” example.

_images/PathIndexDebuggerExample2.png

Parallel paths “Path debug mode” example.