This skill helps an agent give NPCs pathfinding in Unity 6.3 LTS with AI Navigation 2.0. It checks that the package is resolved, takes inventory of existing surfaces and agents, bakes a NavMeshSurface, and adds agents whose type matches the baked one.
It includes patterns for chasing with a re-path timer, checking whether a target is reachable and rebuilding the mesh at runtime with a one-way link, plus checks that read the mesh and paths back. A gotchas list covers the removed Bake tab, agents that warp to the origin, partial paths and Rigidbody jitter.
What You Get
- A six-step workflow from gating on the package to verifying baked data and paths
- Three C# patterns: chase with a re-path timer, a reachability check and a runtime bake with a one-way drop link
- Verification routes with the Unity command line tool, with scene file checks, or by a PlayMode test
- A gotchas list for the missing Bake tab, partial paths, stale meshes, Rigidbody conflicts and OffMeshLink replacement
Common Use Cases
- Making an enemy chase or patrol around obstacles
- Finding why an agent will not move or warps to the origin
- Letting an agent drop from a ledge with a NavMeshLink
- Blocking a path at runtime with a carving obstacle and no rebake
What Makes It Unique
The skill opens with a version trap: the old Navigation window and Navigation Static flag are gone, so baking is component-based. It also shows how to prove a bake from files, by reading the surface’s data reference in the scene, when no Editor is connected.
Under The Hood
The agent loads the SKILL.md and, for deeper settings, names the AI Navigation manual pages. It reads package lock files, scenes and the NavMesh areas settings, searches scenes for navigation components and edits C# files. With the Unity command line tool and a ready Editor it can bake surfaces and evaluate C# to count mesh triangles and compute a path; that tool is a pre-release package. Without it the agent asks you to press Bake, then checks the scene file, or runs a PlayMode test. It asks before adding the package to the manifest. Nothing is fetched from the web during normal use.