Path Debug

Path Debugger

YouTube tutorial.

How To Open

In the scene, select:

CityDebugger/PathDebugger

Settings

_images/PathDebugger.png
Draw editor traffic path : enables/disables path visualization in the Scene view during editing.
Draw entity traffic pathenables/disables runtime entity path visualization.
  • Draw entity traffic node connection : toggles runtime TrafficNode connection lines.

Draw pedestrian connection path : enables/disables PedestrianNode connection lines in the editor.

Path Data Viewer

Tool for inspecting and validating path parameters across the city.

How To Open

From the Unity toolbar:

Spirit604/CityEditor/Window/Path Data Viewer

_images/PathDataViewerOpenExample.png

How To Use

  1. Select the desired Path view type.

  2. In the Colors info list, click - to hide paths matching that parameter.

  3. Click + to show hidden paths again.

  4. Click x to reset the saved color for a parameter.

Settings

_images/PathDataViewer.png
Default color : default display color for paths.
Path view type: parameter displayed in the Scene view:
Draw custom colors : enables/disables custom parameter coloring.
Show world buttons : displays in-scene path selection buttons.
Show intersect point : visualizes intersection points.
Show waypoints : displays waypoints along paths.
Show path handles : displays position handles on the selected path.
Show path edit buttons : displays node addition/removal buttons.
Multiple selection : enables selecting multiple paths simultaneously.
Show unselect buttons : displays deselect buttons in multi-selection mode.
Refresh : refreshes cached path data.

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 : enables/disables index debugging.
Select path : enables path selection filters.
Selected path index : target path index to inspect (-1 shows all).
Path debug mode :
  • Default : displays current path index only.

  • Parallel : displays parallel path indices.

  • Neighbor paths : displays neighbor path indices originating from the same node.

  • Next connected paths : displays next connected route indices.

  • Intersected paths : displays intersecting path indices.

  • Car count : displays number of cars currently traversing the path.

Index format:
  • 543 (544, 545, 546) — active path index followed by related indices depending on the mode.