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
- "Unable to get the list of approved APIs." is thrown when testing the App Packages with Windows App Certification Kit
- [Linux] The mouse wheel input is inverted when scrolling in the Build
- TMP Input Field is moving Text and Caret UI positions for each new line when 'Auto Size' and 'Multi Line Newline' are used
- OnTriggerExit2D events are not triggered when disabling Collider, despite "Callbacks On Disable" being enabled
- [Android] [Vulkan] UI that is activated after a delay flickers when a Scriptable Render Pass goes over it
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.