Loading Screen for Runtime Navmesh Building
Hi there! I am trying to create a loading screen while the NavMesh of my level is being built at runtime. However, as this is done in activation time, my progress bar reaches 100% a lot sooner than the level is actually ready. Also, there seems to be no way of getting the progress of the navigation mesh and while it is building everything in my game freezes so I can not play animations either. I have tried to use an IEnumerator for the operation but the animations still won't work. I would like to, at least, be able to play an animation to tell the user that the game hasn't frozen. Is there a way around this?
Answer by DuduRamos · Mar 08, 2020 at 06:04 PM
I got this answer from a Discord server: Unity’s level load async setup is just broken as far as I can tell. There’s no way to preserve framerate while loading a level, and I’m guessing that applies to navmesh too.
Your answer
Follow this Question
Related Questions
Baking Navmesh at runtime freezes the game for a couple seconds 1 Answer
Build navmesh during runtime 0 Answers
Instantiating a room onto a NavMesh during runtime - Walls are carving, but floors are not walkable. 0 Answers
change enemy NavMesh Walkable at runtime 1 Answer
Why does Nav Mesh Run Slower in build mode than in Editor? 1 Answer