Complete 2D navigation for Unity: pathfinding, crowd avoidance, jumps, doors and vision queries to build your characters' movement and AI in code. Fast, easy to set up and easy to learn.NavMesh2D Pro gives you the tools to make the characters of your 2D game move around your levels. Your game code 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.It was made for 2D from the ground up. No rotated 3D navmesh, no grids, no workarounds. It builds the walkable area from the 2D colliders you already have (tilemap colliders included) and keeps it up to date while you build your level.Official site: https://navmesh2d.comLet's talk at Discord, X.com, or by email.🚀 EASY TO START, EASY TO LEARNUp and running in minutes. An installation window greets you on import, and the quick-start guide gets your first character moving in less than five minutes.Uses what you already have. Box, polygon, circle, capsule, composite and tilemap colliders all work. You can also draw walkable areas by hand right in the Scene view.Takes care of itself. A new navmesh is ready the moment you create it, and it rebuilds itself as you shape it, so you see the result while you work.One line to move a character. Characters find the right navmesh on their own. You only tell them where to go.Learn by playing. 11 ready-to-run demo scenes, opened from a built-in demo browser, show every feature in action, with their scripts as examples.Clearly documented. A complete manual in plain language, tooltips in the inspector, and fully documented code.🤸 WHAT YOU CAN BUILD WITH ITNatural 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. Many characters share the same space and step aside for each other instead of walking through one another. Important characters can be given 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 for gaps, ladders, elevators or portals, 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. When the way is blocked, characters get as close as they can and carry on by themselves once it opens.Terrain preferences. Make mud, water or danger zones costlier to cross, 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. Levels built from several navmeshes, even from additively loaded scenes, join up into one world.🧱 BUILDING BLOCKS FOR YOUR GAME AI Your game decides what a character wants to do. These tools give it the information to decide well.Vision. Ask who can see whom, with range and view cones. Choose whether walls block the view, or only obstacles do.Run away or close in. Find good spots to flee to, or to approach a target from.Wander. Pick random places a character can actually reach.Ask about the world. Who is nearby, where the nearest walkable ground is, where a line of sight hits a wall.🔩 TWEAK EVERYTHING WHILE THE GAME RUNS 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. No restarting, no waiting for a rebuild, no waiting for a programmer. Change a single character, or a whole type of character at once, and keep iterating until it feels right.🌡 SEE WHAT IS HAPPENINGVisual debugging in the Scene view. Show the walkable areas, the routes between them, how much each connection costs, what blocks line of sight, and each character's path and movement.Always-visible state. Links, gates and obstacles show their shape and state in the Scene view at all times, so a closed door or a misplaced link is obvious at a glance.Try features without coding. Ready-made test components let you try movement, vision, fleeing, approaching and wandering on any character.Live readouts. A floating panel shows a character's speed, velocity, heading and avoidance values as they change.Built-in profiler. An on-screen overlay shows how long each part of the system takes per frame, so you know exactly where the time goes.Requires Unity 6.0 or newer.Demos use some free-license images from other authors, see Third-Party Notices.txt file in package for details.This package depends on Burst which means the following packages have to be installed (versions prior to 6.6):com.unity.burstcom.unity.collectionscom.unity.mathematicsPerformance: 3,000 agents at 90 FPS on an Intel i7-9700K (8 cores, 3.60 GHz).Parallelized with Burst and the C# Job System. No DOTS or ECS required.Only the affected data is recalculated when something changes.Shape profiles (size) and animation profiles (behaviour) are kept separate. Agents reuse shared profiles instead of storing their own copy of every parameter, for better performance, with per-agent overrides when needed.Most of the NavMesh2D API is thread-safe: call it from your own jobs or worker threads. See the documentation for details.Static API: no scene manager or singleton object needed. Create a navmesh and an agent and you're ready to go.Supports Enter Play Mode without domain reload.Drive a Rigidbody2D, or let the agent move the Transform. The agent's position is decoupled from the Transform, so navigation never fights your Rigidbody2D (no NavMeshAgent-vs-physics tug of war).Claude was used as an assistant in writing the code for this package.







