Unity 6 · 2D navigation package
NavMesh2DPro
Complete 2D navigation for Unity: paths, crowds and line of sight.
Your game decides where a character should go and when. NavMesh2D Pro works out how to get there and moves it: around walls, through doors, across gaps and among other characters.
- One line to move a character: agent.SetDestination(target)
- Built for 2D from the ground up. No rotated 3D navmesh, no grids, no workarounds.
- Line of sight built in: vision cones, raycasts and who can see whom, straight from the navmesh with no extra setup.
3,000 agents
with avoidance, at 90 FPS
11 demos
ready to run, from a built-in browser
Burst + Jobs
multithreaded, no DOTS needed
Full source
included and fully documented
Thread-safe
query it from your own jobs
Quick start
From empty scene to walking characters in five minutes.
An installation window greets you on import, and the quick-start guide gets your first character moving in less than five minutes. No grid to paint, no special level format, no new architecture.
-
1~1 min
Define your characters
Create a shape profile for each character size and an animation profile for how they move: speed, turning, avoidance.
Radius 0.5 · Max Speed 3 -
2~1 min
Add the walkable ground
Add a NavMesh2D and point it at your floor and wall colliders, or draw the walkable areas by hand, no colliders needed. It rebuilds itself as you shape it.
Navigation → NavMesh2D -
3~1 min
Drop in an agent
Add a NavMesh2D Agent and pick its profiles. It finds the navmesh it stands on by itself.
Navigation → NavMesh2D Agent -
4~2 min
Tell it where to go
One call. Or, without writing code, add a test component and give it a target to chase.
agent.SetDestination(target);
What you can build
Movement that looks alive.
It was made for 2D from the ground up. It builds the walkable area from the 2D colliders you already have and keeps it up to date while you build your level.
Natural paths
Routes hug corners and look like a person would walk them: no zig-zags, no staircase steps.
Movement with personality
Speed, acceleration, braking and turning, set per type of character.
Crowds
Characters step aside for each other instead of walking through one another. Important ones get right of way.
Characters of every size
A rat and an ogre each get only the routes they actually fit through, with no extra work per level.
Jumps, ladders and teleports
Connect separate areas with links and play your own animation while crossing.
Moving platforms
Walkable areas can move, and the characters on them move along.
Doors
Gates close a passage while the game runs (blocking routes, movement and even sight) and reopen instantly.
Waiting at a closed door
Characters get as close as they can and carry on by themselves once the way opens.
Terrain preferences
Make mud, water or danger zones costlier, so characters go around when it's worth it.
A changing world
Push a crate or drop a barricade and routes update on the fly.
Levels in pieces
Several navmeshes, even from additively loaded scenes, join up into one world.
Smarter AI
Vision with range and view cones, places to flee to or approach from, random reachable spots, nearby characters.
See it in action
Explore every system.
Pick a topic to watch it working in the editor. Each one has its own chapter in the manual.
Walkable areas
Any 2D collider becomes walkable ground
Point the navmesh at your floor and wall colliders, or let it gather them by layer and tag. It rebuilds itself as you shape the level, and the result is saved next to your scene, so the game starts with nothing to compute.
- Polygon, composite, box, circle, capsule, tilemap
- Hand-drawn areas in the Scene view
- Every character size from the same setup
- Generation at runtime for procedural levels
Pathfinding
Short, natural routes, and smarter questions
Routes run over a polygonal decomposition of the mesh, not grid cells, and are pulled tight around corners. Ask for routes toward or away from a point, random reachable positions, or the nearest walkable spot.
- Flee and approach destinations, ranked
- Random reachable positions
- Limit by route cost or step cost
- Partial paths when the goal is blocked
Crowds
Hundreds of characters, no traffic jams
Each agent picks a collision-free velocity that its neighbours agree on, so two characters meeting head-on both step aside instead of dancing. Set priorities so the boss pushes through and minions yield.
- Quality levels: Disabled, Basic, Improved, Extra
- Priorities and neighbour limits
- Deadlock breaking, congestion braking
- Hard separation: bodies never overlap
Obstacles
Things that move, things that block
Carving obstacles cut themselves out of the mesh and rebuild it in the background when they move. Non-carving obstacles simply push characters aside, with almost no performance cost.
- Any shape, from colliders
- Background rebake, no frame hitches
- Can block sight
- Can apply to some character sizes only
Gates
Doors you open with one line of code
Place a gate across a corridor. Close it and routes, movement and, optionally, sight are blocked instantly, without rebaking. Make it one-way, or let only some characters through.
- One or both directions
- Optionally blocks sight
- Closed gates are physically solid
- Agents wait at the door, then carry on
Area costs
Prefer the road, avoid the swamp
Mark slow or dangerous ground and characters only cut through when the detour is long. Overlapping areas combine their costs, and you can retune them while the game runs.
- Add surface, or only re-price it
- Overlapping multipliers combine
- Live repricing, no rebake
- Works on existing colliders
Links
Jump gaps, climb ladders, take teleporters
A link bridges two walkable areas, on one navmesh or on different ones, even across additive scenes. Routes plan through it automatically, and you script the crossing animation and the conditions.
- One-way or two-way
- Filter which characters can cross
- Custom cost: shortcut or last resort
- Endpoints stay hooked to moving meshes
Line of sight
Enemies with real vision
Raycasts, vision cones and "who can I see" queries on a dedicated visibility mesh. A guard spots the player, then loses them behind a wall or a closed door.
- Vision cones, single or many targets
- Gates and obstacles can block sight
- See across separate navmeshes
- Thread-safe point-to-point checks
Moving worlds
Platforms, ships, elevators, additive scenes
Navmeshes can move and their characters ride along, with attached links adapting automatically. Load an additive scene and its navmeshes work immediately, as if they had always been there.
- Agents ride moving meshes
- Links follow their meshes
- Additive scenes, cross-scene links
- Spawn agents any time
Debugging
See exactly what is happening
Scene-view overlays for polygons, routing graph, costs and the sight mesh. Agent gizmos show direction, current path and recent track. Ready-made test components let you try every feature without code.
- Mesh and graph overlays
- Agent paths, tracks and reach
- Test components for each feature
- On-screen profiler
Tweak everything while the game runs
No restarting. No waiting.
Game designers can tune almost every setting in Play mode and see the effect immediately: speeds, acceleration, turning, crowd behaviour, terrain costs, doors and obstacles. Change a single character, or a whole type of character at once, and keep iterating until it feels right.
- See what is happening: walkable areas, routes, costs, sight and every character's path, right in the Scene view.
- Try features without coding using the ready-made test components.
Performance
3,000 agentswith obstacle avoidance, at 90 FPS
- Parallel by default. Burst-compiled jobs on every core. No ECS, no DOTS, no rewrite.
- No frame hitches. Heavy work, like rebuilding a mesh, happens in the background.
- Only what changed is recalculated. Gates and costs update without a rebake.
Measured on an Intel i7-9700K, 8 cores @ 3.60 GHz.
Highly customizable
Tune it to fit your game.
Documentation
A complete manual. No guesswork.
From the core concepts and a five-minute quick start to every component and inspector field, a full settings reference, troubleshooting and a scripting cheat sheet. It comes inside the package, next to the demo scenes.
- What NavMesh2D Pro does
- Core concepts
- Installing
- Quick start: first moving character
- Shape profiles
- Building walkable ground
- Agents
- Animation profiles
- Obstacles
- Crowd avoidance
- Links
- Gates
- Area tags
- Vision
- Queries
- Settings reference
- Debug visualization
- Testing components
- Performance tuning
- Troubleshooting
- Scripting cheat sheet
Already using NavMesh2D Pro?
Tell other developers what you think.
A short review on the Unity Asset Store makes a real difference: it helps other developers find the package and keeps its development going. Thank you!
Questions, bugs or ideas?
Talk to the developer.
Ask before you buy, report a problem or suggest a feature. Every message gets an answer.