unity-navmesh

Bake and manage Unity navigation meshes for AI pathfinding.

8|1|Updated Oct 7, 2025
One-click install
npx skills add https://github.com/Zzulin/unity-project01 --skill unity-navmesh-zzulin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-navmesh
Source: https://github.com/Zzulin/unity-project01/tree/main/URP1/Plugins/Unity-Skills-main/SkillsForUnity/unity-skills~/skills/navmesh
Command: npx skills add https://github.com/Zzulin/unity-project01 --skill unity-navmesh-zzulin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Navigation meshes in Unity can be time-consuming to generate and difficult to manage across scene edits, runtime agent setup, and dynamic obstacles. This Skill centralizes NavMesh baking, path calculation, agent and obstacle configuration, and build-setting inspection so developers can reliably prepare and query navigation data for AI agents.

Core Features & Use Cases

  • Synchronous NavMesh baking and clearing for editor workflows where an up-to-date NavMesh is required before testing or deployment.
  • Path calculation between points with area mask support and detailed results including status, distance, and corners for AI movement planning.
  • Agent and Obstacle management: add and configure NavMeshAgent and NavMeshObstacle components (speed, radius, height, carving, shape) without manual inspector edits.
  • Utility operations: sample nearest NavMesh positions, set area traversal costs, and retrieve build settings for consistent runtime behavior.
  • Use Case: Bake the NavMesh after level geometry changes, add agents to newly spawned characters, and compute paths from NPC spawn points to player targets during playtesting.

Quick Start

Bake the NavMesh for the current scene and calculate a path from the player's position to the target position.

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 Unity NavMesh for AI pathfinding after editing level geometry?

You can bake a Unity NavMesh by applying synchronous baking operations to generate navigation data for the current scene, ensuring the mesh is up-to-date before testing or deployment workflows.

How does NavMesh path calculation work with area masks for AI movement?

NavMesh path calculation computes routes between points using area masks, returning detailed results including status, distance, and corners to plan AI movement across traversable surfaces.

Can I configure NavMeshAgent and NavMeshObstacle components without using the Unity inspector?

Yes, you can add and configure NavMeshAgent and NavMeshObstacle components programmatically, setting speed, radius, height, carving, and shape properties without manual Unity inspector edits.

What is the best way to manage dynamic obstacles in Unity NavMesh scenes?

The best way to manage dynamic obstacles in Unity NavMesh scenes is by adding and configuring NavMeshObstacle components with carving properties, allowing moving objects to dynamically alter the navigation mesh.

How do I sample nearest NavMesh positions and set area costs in Unity?

To sample nearest NavMesh positions and set area costs, use utility operations to query valid navigation points and adjust area traversal costs to control agent routing preferences during runtime.

Does synchronous NavMesh baking block Unity runtime playtesting for agent setup?

Synchronous NavMesh baking generates up-to-date navigation data required before testing, ensuring newly spawned characters can correctly receive NavMeshAgent components and compute paths during playtesting.