# Basic Usage

Constructs an `XWUIGameNavmeshViewer` with empty data, so the `Navmesh Debug` panel shows the toggle `OFF`, Walkable/Obstacles ON, and zeroed stats. Use `onToggle()` to react to the visibility switch and `updateData({ enabled, nodeCount, polyCount, pathfindTime })` to feed live pathfinding counts.
