This question was
closed Jun 26, 2018 at 01:24 PM by
Bip901 for the following reason:
The question is answered, right answer was accepted
Question by
Bip901 · May 25, 2018 at 05:04 PM ·
pathfindingnavigationbaking
Building (baking) NavMesh via a script
Short version
I'm looking for the in-game script equivalent of clicking the "Bake NavMesh" button in the editor.Long version
My game generates a random map by instantiating static objects into the scene. Enemies can navigate the map using NavMesh. Using the NavMeshObstacle component on all those static objects is silly, since it's a waste of performance. How can I build the NavMesh through a script? (C# preferred).This solution from the Unity wiki seems too clumsy.
Comment
Follow this Question
Related Questions
Nav Mesh on stairs gets cranky 0 Answers
Multi-Floor, Levels pathfinding with Navmesh 2 Answers
Nav Mesh Agent can't decide on path 0 Answers
NavMesh and 2 floors / bridge - not walkable? 1 Answer
2d NPC pathing 0 Answers