unity-navmesh

Bake Unity NavMesh data and compute paths between coordinates.

1|Updated Feb 22, 2024
One-click install
npx skills add https://github.com/Stardust-liu/EDC_Framework --skill unity-navmesh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-navmesh
Source: https://github.com/Stardust-liu/EDC_Framework/tree/main/Assets/AI/Unity-Skills-1.5.5/unity-skills/skills/navmesh
Command: npx skills add https://github.com/Stardust-liu/EDC_Framework --skill unity-navmesh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Navigation mesh operations streamline AI pathfinding in Unity scenes, reducing setup time and runtime errors by providing a clear, structured way to bake, clear, and query paths.

Core Features & Use Cases

  • Bake the NavMesh synchronously to generate navigation data for AI agents.
  • Clear existing NavMesh data to reset navigation state during iterations or play mode.
  • Calculate paths between two points with optional area masks for selective traversal.

Quick Start

Bake the NavMesh in the current scene and verify a simple path from the start to the end point.

Frequently Asked Questions about unity-navmesh

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

FAQPage Schema
How do I bake Unity NavMesh data for AI navigation in a scene?▼

Baking Unity NavMesh data synchronously generates navigation data from your scene geometry. This Skill processes the environment to create a mesh that AI agents can use for pathfinding and route computation.

What parameters are needed to calculate a path with Unity NavMesh?▼

Calculating a Unity NavMesh path requires start and end coordinates: startX, startY, startZ, endX, endY, and endZ. An optional areaMask parameter can be included to define selective traversal areas for the AI agent.

Can I reset navigation state by clearing existing NavMesh data in Unity?▼

Yes, you can clear existing NavMesh data in Unity to reset the navigation state. This is useful during scene iterations or when exiting play mode to ensure a clean navigation slate before baking new pathfinding data.

What does the pathfinding utility return when calculating a route in Unity?▼

The Unity pathfinding utility returns a PathComplete object. This object contains the total distance of the computed route and the specific corners that define the AI agent's path through the scene.