Search Issue Tracker
Fixed in 5.2.2
Votes
0
Found in
5.0.1f1
Issue ID
699420
Regression
Yes
Can't bake NavMesh while building Lighting
Reproducible on 5.0, 5.1, 5.2;
Repro steps:
1. Create an empty 3D scene with a default terrain;
2. Paint something into the terrain (paint height or raise/lower terrain);
3. Automatic light mapping calculation kicks in. While it's running, go to the Navigation tab and start baking the NavMesh;
What happens:
About 50% of the time the "Cancel" button is not reset to "Bake" even when the NavMesh has or hasn't finished building (when hasn't finished, Unity just doesn't finish baking, progress bar doesn't appear in the corner). Internally this is represented by NavMeshBuilder.isRunning, which doesn't get reset either. As it only happens 50% of the time it seems to be some race condition.
What should happen:
NavMeshBuilder.isRunning must reliably reset to "false" after an asynchronous NavMesh build.
Workaround:
In the Navigation tab you can just press Cancel without losing the NavMesh. However this issue basically breaks all scripts which want to build navigation meshes as part of an editor automation as they don't have a way to know whether or not the navigation mesh building is finished and they can continue.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Frame Debugger On” text color not maintained across different Editor Themes in toolbar
- Rendering artefacts appear in the Game view window when maximizing/minimizing Inspector window and Frame Debugger is Enabled
- [MacOS] AdvancedDropdown in the Profiler is not scrollable even when not all options in the list are visible
- Memory leak when a lot of Particle Systems instantiated while Profiler is open
- "ArgumentOutOfRangeException" error is thrown when trying to delete letters from an RTL TextField when using the Advanced Text Generator
Add comment