What problem does it solve?
This Skill provides deterministic Unity NavMesh operations to automate baking, pathfinding, agent and obstacle setup, and related scene-level navigation tasks, eliminating manual, error-prone configuration and troubleshooting for AI navigation.
Core Features & Use Cases
- Synchronous NavMesh Baking & Clearing: Bake the NavMesh for the scene and clear NavMesh data when needed, with a warning that baking can be slow.
- Path Calculation & Sampling: Compute paths between coordinates with area masks and sample the nearest point on the NavMesh.
- Agent & Obstacle Management: Add and configure NavMeshAgent and NavMeshObstacle components programmatically, and adjust area traversal costs and build settings.
- Use Case: In a Unity level update workflow, re-bake the NavMesh after geometry changes, add agents/obstacles to test avoidance, and calculate NPC patrol or pursuit routes.
Quick Start
Bake the NavMesh for the current scene and calculate a path from (0,1,0) to (10,1,5) using the default area mask.