This project is a modified version of RecastNavigation. It maintains all the original functionality while adding a plugin that allows direct NavMesh generation within the Unity engine.
- Original: https://github.com/recastnavigation/recastnavigation
- License: Follows the original author's ZLib license.
- Developed a native plugin that enables direct NavMesh generation within the Unity engine
- Unity script integration through C# wrapper classes
- NavMesh generation and visualization tools for Unity editor
This project was developed for use in the following architecture:
- Client: Built with Unity engine
- Server: C++ based server
- Pathfinding: NavMesh-based pathfinding calculations performed on the server
Clients and servers can share the same NavMesh data to ensure consistent pathfinding results.
recastnavigation_for_unity/
├── UnityDemo/ # Unity demo project
│ ├── Assets/
│ │ ├── Scripts/ # C# scripts
│ │ └── Plugins/ # Native plugins
├── UnityWrapper/ # Unity plugin source code
│ ├── Source/ # C++ source code
│ └── Runtime/ # Built plugins
└── [Original RecastNavigation modules]
├── Recast/ # NavMesh generation
├── Detour/ # Runtime pathfinding
├── DetourCrowd/ # Crowd simulation
└── ...
- Copy the
UnityDemo/Assetsfolder to your Unity project - Add the
NavMeshGeneratorcomponent to a game object - Set the OBJ file path and output filename
- Click the "Generate NavMesh" button
cd UnityWrapper
./build.bat # Windows
# or
cmake -B build
cmake --build build --config ReleaseThis project follows the original RecastNavigation's ZLib license. See License.txt for details.
