How to bake/update NavMesh at Runtime in Unity

How to bake/update NavMesh at Runtime in Unity

Channel:
Subscribers:
11,700
Published on ● Video Link: https://www.youtube.com/watch?v=mV-Uh_FEBn4



Category:
Vlog
Duration: 7:44
48,000 views
477


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




Other Videos By iwanMods


2023-05-29FPS Level Made in ProBuilder—Showcase
2023-03-28Receiver Level Tile Map Mod Tutorial
2023-01-10How to Unpack .archive Files in Cyberpunk 2077 (Extract Videos, Audio, Textures, Models)
2022-12-17How to 'Mod' You Probably Won't Survive Or GameMaker games in general, apparently
2022-12-14How to download Cheat Engine 7.5 without Bloatware/Suspicious Installer
2022-05-02How to install custom voice pack .bnk mods in Pathfinder: Wrath of the Righteous and Kingmaker
2022-04-14How to make a tape mod for Receiver 1
2022-03-20Modding Tutorial for Beginners
2021-08-19How to get Cheat Engine 7.5 without bloatware (compile from source)
2021-07-20How to speed up manual machine translation of partial Strings in Crowdin (for game localization)
2021-06-16How to bake/update NavMesh at Runtime in Unity
2021-06-16Get started with Navmeshes in Unity in 60 seconds
2021-04-04Translating classic Fallout 1/2 game mods
2021-03-29How to find the decryption key & extract encrypted RPG Maker MV game art/audio [KEL/PLUTO recovery]
2021-03-28Adding Notepad++ custom syntax highlighting with User Defined Language (UDL NPP Fallout MSG Markup)
2021-02-22Blender Passepartout Explained Quickly
2021-01-21How to Download Cheat Engine 7.2 without the suspicious installer
2020-12-08How I made a lowpoly HQ Residential House w/ Blender and OpenGameArt
2020-11-29Among Us 3D: How to Download and Play (PC/Laptop 2021)
2020-11-28Among Us Desktop Crewmate: How to Download and Install
2020-11-06How to upload many files without uploading each one separately



Tags:
navmesh
unity
tutorial
beginner
getting started
realtime
update
baking navmesh
bake navmesh ingame