
How to bake/update NavMesh at Runtime in Unity
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: https://github.com/Unity-Technologies/NavMeshComponents.git#package
code for NavigationBaker.cs : https://gist.githubusercontent.com/iwanPlays/7fdd3cde93adc84d67e28d4d11aa5370/raw/fae00b006b580859da768ebb6900b1fa96a328af/NavigationBaker.cs
If this video is overwhelming, start with https://youtu.be/nJi2MtpaC-Y
Next step would be to go through https://www.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