- Home /
Call Navmesh Bake from Editor Script?
I'm trying to make Unity bake navmeshes fro the current scene from an editor script.
I'm not talking about realtime, just a way of calling Navmesh Bake from an editor script instead of having to manually click the button every time I update stuff.
I couldn't find anything in the manual. Is there a way of accessing it somehow?
Answer by benhumphreys · Nov 04, 2013 at 02:33 AM
I'm an idiot. It's right here in the documentation:
Your answer
![](https://koobas.hobune.stream/wayback/20220613121211im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Nav Obstacle bug? 1 Answer
Render overlay in editor like the NavMesh Display option 'Show NavMesh' 0 Answers
Set a gameobject as 'Navigation Static' and its layer programmatically 1 Answer
Is it possible to bake a navmesh only for selected objects? 2 Answers
NavmeshComponents baking creates a new navmesh instead of overwriting 0 Answers