How to bake/update NavMesh at Runtime in Unity @iwanMods
How to bake/update NavMesh at Runtime in Unity  @iwanMods
Uploaded June 2021 | Updated November 2026, 3 hours ago
0:00 Intro
0:10 Awkwardly install the package
0:54 Add 2 cubes to test NavMeshes
1:20 Copy runtime baking code
2:00 Attach script to an object
2:43 Add NavMeshSurface components
2:58 Set up Navigation Baker script
3:19 Fix RunTimeNavMeshBuilder: Source mesh Combined Mesh (root: scene) 2 does not allow read access.
3:55 Does it work in Update() too?
4:18 Cleanup
4:48 Testing seperate islands
4:56 Fix errors again
6:56 Test: manually change scene during runtime

git URL to add: github.com/Unity-Technologies/NavMeshComponents.git#package

code for NavigationBaker.cs : gist.githubusercontent.com/iwanPlays/7fdd3cde93adc84d67e28d4d11aa5370/raw/fae00b006b580859da768ebb6900b1fa96a328af/NavigationBaker.cs

If this video is overwhelming, start with youtu.be/nJi2MtpaC-Y

Next step would be to go through youtube.com/watch?v=ZigSuoGmJ0Y&list=PLX2vGYjWbI0Rf0im34I2lBF4eufM-cgzQ&index=1

If you're curious - I keep the errors in because I expect people to also run into them, so they can see how I fixed (avoided) them
How to bake/update NavMesh at Runtime in UnityGet started with Navmeshes in Unity in 60 secondsHow to install custom voice pack .bnk mods in Pathfinder: Wrath of the Righteous and KingmakerHow to Mod a Game to Enhance Usability | Removing Black Screen Flash in Receiver 2Fix Connecting Steam account: STUCK Connection ErrorHow to Unpack .archive Files in Cyberpunk 2077 (Extract Videos, Audio, Textures, Models)HOW TO DELETE DESKTOP GOOSE!How to upload many files without uploading each one separatelyHow to Enable Visual Studio CODE Mouse Scroll Wheel Zoom (and GUI Zoom)DESKTOP GOOSE: ALL SECRET MODS/SKINSUnity: Using Terrain as Background Mountain Line in your Game/Level/MapEveryday Life of an Amateur Video Game Translator
iwanMods |

How to bake/update NavMesh at Runtime in Unity

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER