MPath uses a single codebase for both Unity and .NET:
- Core source code in
src/mpath-unity-project/Packages/MPath/Source - .NET project links to this code via
<Compile Include=""/>in the.csprojfile - Unity-specific code in
src/mpath-unity-project/Packages/MPath/Runtime
| Type | Description |
|---|---|
| Pathfinder | Main class for performing pathfinding operations |
| PathResult | Contains the results of pathfinding operations |
| Cell | Represents a single cell in the pathfinding grid |
| Coordinate | Represents a position in the grid |
| IAgent | Interface for entities that need pathfinding |
| ICellHolder | Interface for objects that hold cell data |
| IPathfinderSettings | Interface for configuring pathfinding behavior |
| PathfinderSettings | Default implementation of IPathfinderSettings |
| IPathCaching | Interface for path caching functionality |
| DefaultPathCaching | Default implementation of path caching |
| Type | Description |
|---|---|
| ScriptablePathfinderSettings | Unity ScriptableObject implementation of pathfinding settings |
| PathfindingExtensions | Extension methods for Unity integration |