unity-navmesh

Bake and query Unity NavMesh data for agent pathfinding and navigation setup.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-navmesh-ethanjpope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-navmesh
Source: https://github.com/ethanJPope/Our-Main-Hackathon-Game/tree/main/.agents/skills/unity-skills/skills/navmesh
Command: npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-navmesh-ethanjpope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up navigation in Unity requires baking NavMesh data, configuring NavMeshAgent and NavMeshObstacle components, and validating paths, which normally involves repetitive manual work in the Editor. This Skill exposes those operations as callable commands so an AI assistant can bake, query, and configure navigation directly. ## Core Features & Use Cases - NavMesh Baking and Clearing: Bake NavMesh data synchronously or clear it, with warnings about blocking the Editor on large scenes. - Path Calculation and Sampling: Calculate paths between two points with corner waypoints and distance, or find the nearest valid point on the NavMesh. - Agent and Obstacle Configuration: Add NavMeshAgent and NavMeshObstacle components to GameObjects and tune speed, radius, shape, carving, and area costs. - Use Case: While prototyping an AI enemy, ask the assistant to bake the NavMesh, add a NavMeshAgent to the enemy prefab instance, set its speed to 3.5, and verify a path from spawn point to the player location. ## Quick Start Bake the NavMesh in the current Unity scene, then calculate a path from position (0, 0, 0) to (10, 0, 10) and report whether it is complete.

Frequently Asked Questions about unity-navmesh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bake a NavMesh in Unity from a script or assistant?

Call navmesh_bake with no parameters to synchronously bake the NavMesh for the current scene. Be aware it blocks the Editor main thread, so large scenes may take a long time, and you must re-bake after scene geometry changes.

How to calculate a path between two points on a Unity NavMesh?

Use navmesh_calculate_path with start and end coordinates and an optional area mask. It returns a status (PathComplete, PathPartial, or PathInvalid), total distance, and an array of corner waypoints.

How do I add and configure a NavMeshAgent on a GameObject?

Call navmesh_add_agent with the GameObject name, instance ID, or hierarchy path, then use navmesh_set_agent to tune speed, acceleration, angular speed, radius, height, and stopping distance. For full component control, use the component module instead.

Why is navmesh_clear not executing in semi-auto mode?

navmesh_clear is marked as a Delete operation and is statically blocked in SemiAuto mode. It only runs in Bypass mode or when explicitly added to the allowlist.

Does navmesh_create exist for generating a NavMesh?

No, navmesh_create does not exist. Use navmesh_bake to generate NavMesh data, and use navmesh_add_agent plus navmesh_set_agent instead of nonexistent helpers like navmesh_add_agent_component or navmesh_set_agent_speed.