Megacrush Unity Assets
Runtime Navmesh Baker
Runtime Navmesh Baker
  • Runtime Navmesh Baker User Manual
    • Introduction
    • Technical Details
      • Input System (Old)
    • Video Tutorials
    • Getting Started
    • Nav Mesh Baker Component
    • Installing Samples
      • Text Mesh Pro Essentials
      • The Runtime Navmesh Baker Demo scene
      • Scene View Overlays
      • Runtime Navmesh Baker Configuration
    • Preparing a scene for Runtime Navmesh Baking
      • Navmesh Render Geometry
      • Use Primitive Colliders instead of Mesh Colliders
      • Allow Read/Write access to ALL meshes used for Mesh Colliders
      • Disable Batching Static for Scene Elements
      • Page Third Party Mesh Combination Tools1
    • NavMeshBaker API
    • Frequently Asked Questions
    • Extras
      • ClickToMoveController
Powered by GitBook
On this page
  1. Runtime Navmesh Baker User Manual

Preparing a scene for Runtime Navmesh Baking

There are a couple of things to be aware of when setting up a scene for runtime navmesh baking.

Note: these are restrictions imposed by Unity’s implementation of runtime navmesh baking in general, not a limitation of this package (we simply use the APIs provided by Unity).

“Source Mesh XXX does not allow read access” errors

If you try to use the Nav Mesh Baker without changing anything in your scene, you may encounter errors like “Source mesh XXX does not allow read access.”

There are a few things potentially causing this:

  1. Your NavmeshSurface is set to use ‘Render Geometry’ - in order to determine what to bake, the NavmeshBaker needs access to the geometry in your scene.

    1. By default, the NavmeshBaker sets the NavmeshSurface to use Physics Colliders, however you can also choose Render Geometry if you wish.

  2. You are using Mesh Colliders - same as above, in order to generate the navmesh from the mesh info, the NavmeshBaker requires access to the geometry.

  3. You have meshes in your scene combined at runtime via the ‘Batching Static’ option. Unfortunately if you use Unity’s batching system, the resulting mesh is not readable, which prevents the NavmeshBaker from accessing the geometry as well.

Continue reading for solutions to these issues.

PreviousRuntime Navmesh Baker ConfigurationNextNavmesh Render Geometry

Last updated 1 year ago