PathForge for Unity

Keep your map.
Upgrade your pathfinding.

PathForge computes routes over the navigation you already have — Grid, Tilemap, Hex, Waypoint, triangle Mesh, Unity's NavMesh — in a native core: the shortest path, the same path every time, and no garbage per query.

Available on the Unity Asset Store Unity 6 Mono + IL2CPP Windows · macOS · Linux · Android

Your first route in three lines

Build once from the map you already have, then ask for as many routes as you like — each one lands in a buffer you reuse, so nothing piles up for the garbage collector.

var solver = new DnskSolver(builder.NumVertices);   // builder = your existing map
solver.BuildFrom(builder);
var path = solver.QueryPath(start, goal, buffer);   // shortest route, into your buffer

Or let your coding assistant set it up

Paste this line into any coding assistant that can read your project. It finds the package, picks the right adapter for your map, writes the code and checks a first route.

Read and execute https://birdblu.com/pathforge/pathforge-setup/SKILL.md

The same setup file ships inside the package; PathForge Pro adds one for crowds.

Why PathForge

Your map stays as it is. What changes is the route you get back.

Shortest path, guaranteed

Every route PathForge returns is the shortest one on your map — not a close guess. No detours your players notice.

Same route, every run and platform

Same map, same start, same goal: the same route on every run, on every platform. Replays play back exactly, and lockstep multiplayer stays in step.

Doors open, walls fall — the route keeps up

Open a door, drop a wall, flood a street — the next route already knows. No rebuild, nothing for the garbage collector. The Grid, Tilemap and Hex builders track changing cells for you; with PathForge Pro, crowd fields update with one call.

Works with your navigation

Grid, Tilemap, Hex, Waypoint, triangle Mesh or Unity's baked NavMesh — six adapters are included. Anything else plugs in through one small interface, IGraphSource.

Nothing for the garbage collector

You hand PathForge a buffer once and reuse it; every route is written straight into it. Map changes at runtime allocate nothing either — pathfinding never adds to your GC spikes.

It's the GPS, not the car

PathForge tells your units which way to go. Movement, animation and collision stay yours — keep the controller you already have.

Open a scene and watch it run: QuickStart, Benchmark, Determinism, Graph Gallery, Base Demo. PathForge Pro adds six crowd scenes — Tower Defense, Nearest Exit, Colony Sim, Supply Run, Swarm Chase, Many Agents. The Benchmark scene ships in the package — measure on your own machine.

Platforms

Unity 6 (6000.0 or later), with Mono or IL2CPP. The native core ships for:

Supported platforms and architectures
PlatformArchitectureStatus
Windowsx64Included
macOS 11 or laterIntel + Apple SiliconIncluded
Linuxx64 + ARM64Included
AndroidARM64Included

Not in this release: WebGL, iOS, Windows 32-bit and Windows ARM64. Need one of them? Tell us in the issue tracker.

Which tier?

Count destinations, not agents. Units heading to their own goals → Base, any number of them. A crowd heading to the same goal, or to a few → Pro.

PathForge (Base)

The shortest route for every agent with QueryPath. Dynamic maps, all six adapters, save a built map and load it at startup, and five sample scenes.

PathForge Pro

Everything in Base, plus shared fields: one computation serves a whole group. Weighted target sets for many goals, the next step for every agent in one call per frame, watched fields that finish as soon as your agents are covered, and six crowd scenes. Requires Base.

Available on the Unity Asset Store — pricing and current offers live in the store. This site is an information resource, not a checkout.

Support

Questions, bugs and ideas go to our issue tracker — three forms: bug report, feature request, question. Found a security issue? Please report it privately, as described in our security policy.