Search Issue Tracker
Won't Fix
Votes
20
Found in
2017.1.0p4
Issue ID
977006
Regression
No
[NavMesh] RuntimeNavMeshBuilder: Source mesh Combined Mesh does not allow read access when Batching Static is turned on
Only reproducible with runtime navmesh components from https://github.com/Unity-Technologies/NavMeshComponents.
Steps to reproduce:
1. Open user attached project
2. Hit the play button
3. Observe the "RuntimeNavMeshBuilder: Source mesh Combined Mesh (root: scene) does not allow read access" error
4. Disable Batching Static on all static objects.
5. Press Play
6. Observe the scene is properly playing
Expected result: RuntimeNavMeshBuilder: Source mesh Combined Mesh (root: scene) does not allow read access should not be outputted when static batching is enabled on an object
Reproduced in: 2018.1.0b1, 2017.3.0f3, 2017.2.1p1, 2017.1.2p3, 5.6.5f1
-
kevinbeltranx
Sep 17, 2020 04:18
I had the same exact issue, and I was able to resolve it by deselecting "Static Batching" in the Player Settings->Other Settings in Project Settings.
-
JoseeY
Jul 30, 2020 04:22
Unity 2019.4.2f1, error still existing, the OnEneable and Awake method doesn't work for me, im creating the level in runtime. Please help
-
Griffo
Mar 26, 2019 08:21
Still here in 2018.3.0f2 :( Not good as I want to generate the nav mesh after I've built the level at runtime, so Awake and OnEnable is not a fix for me.
-
Naduct
Dec 12, 2018 21:19
Issue still present in 2018.2.18f1.
SNUGSOUND's solution with updating nav mesh in OnEnable rather than Start is still viable. -
alexman
Oct 21, 2018 10:38
Thanks SNUGSOUND, I experienced the same issue when calling nav mesh build via Start(), changing it to called from OnEnable solved the issue
-
phobos2077
Jun 08, 2018 12:12
Issue still exists in 2018.1.3f1
-
purpl3grape
Jun 07, 2018 20:21
On Awake() is also a viable option to call Navmesh.Build(), but yes, anything after and including Start() will trigger the crash at the moment.
-
snugsound
Mar 25, 2018 11:18
Edit to the above: this got me past the issue in the editor, but won't work for standalone builds as static batching happens when building.
-
snugsound
Jan 24, 2018 01:37
FYI I ran into this same issue with LocalNavMeshBuilder. It seems like it comes down to execution order: updating the nav mesh in OnEnable instead of Start fixed the issue for me. I would speculate that Unity's static batching initialization happens between OnEnable and Start.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2021.2.X):
Combined meshes that are the result of static batching are optimized for rendering and unfortunately cannot be taken into consideration for building the NavMesh while the game is running in a standalone player.
In the Editor the NavMesh can still be baked even in that situation because their unoptimized data can still be accessed, but the warning informs users about the fact that this will not produce the desired result in a standalone player.