navmesh-pathfinding

Integrate Unity's NavMesh system for AI pathfinding and agent navigation.

71|11|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/nlelouche/Unity-SkillForge --skill navmesh-pathfinding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: navmesh-pathfinding
Source: https://github.com/nlelouche/Unity-SkillForge/tree/main/.agent/skills/02-gameplay/navmesh-pathfinding
Command: npx skills add https://github.com/nlelouche/Unity-SkillForge --skill navmesh-pathfinding

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill enables AI agents within Unity to navigate complex environments efficiently and realistically using the NavMesh system, handling obstacles and dynamic pathfinding.

Core Features & Use Cases

  • AI Navigation: Guides AI agents to follow paths on a baked NavMesh.
  • Obstacle Avoidance: Integrates with NavMeshObstacle for dynamic avoidance.
  • Off-Mesh Links: Supports AI traversal over gaps or up ledges using off-mesh links.
  • Use Case: Implement enemy AI that chases the player, patrols a level, or navigates around moving obstacles.

Quick Start

Use the navmesh-pathfinding skill to set the agent's destination to the player's current position.

Frequently Asked Questions about navmesh-pathfinding

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

FAQPage Schema
How do I implement AI pathfinding in Unity using NavMesh?

Unity NavMesh pathfinding works by baking a navigation mesh and setting agent destinations. This Skill integrates the NavMesh system to guide AI agents along paths, handle obstacle avoidance, and traverse off-mesh links across environment gaps.

Can Unity NavMesh handle dynamic obstacle avoidance for moving agents?

Unity NavMesh handles dynamic obstacle avoidance by integrating with NavMeshObstacle components. The system supports runtime baking and dynamic obstacle updates, allowing AI agents to navigate around moving objects during gameplay.

Does this Unity NavMesh pathfinding approach support off-mesh link traversal?

This Unity NavMesh pathfinding approach supports off-mesh link traversal. It enables AI agents to cross gaps or climb ledges, allowing enemies to navigate complex level geometries and chase players across disconnected platforms.

Do I need Unity 6 and C# 12 to use NavMesh pathfinding features?

You need Unity 6+ with CoreCLR and C# 12 features to use these NavMesh pathfinding features. These specific environment requirements ensure optimized performance for runtime baking and custom area cost calculations.

How do I set custom area costs for AI movement preferences in Unity?

Custom area costs for AI movement preferences in Unity are set by configuring NavMesh area types. This Skill supports custom area costs for pathfinding preferences, allowing agents to choose routes based on terrain difficulty or designated avoidance zones.