Frequently Asked Questions
Unity throws errors about ‘Source mesh XXX does not allow read access. This will work in playmode in the editor but not in player’
The simple version is that in order to bake the navmesh at runtime, Unity requires read/write access to any meshes that use Mesh Colliders in your scene.
Check the following page in the Unity documentation for more details about the trade-offs.
https://docs.unity3d.com/ScriptReference/Mesh-isReadable.html
To fix this error:
Select the mesh in your project and go to the ‘model’ tab of the import inspector
Check the ‘read/write’ checkbox
Click ‘Apply’
The Getting Started tutorial walks you through these steps.
Last updated