Support Forum

Recast graph and multiple static planes in runtime

I have an issue with generating recast graph on a scene with two or more static planes in runtime. On a clean scene I place two static planes and recast graph is unable to generate in runtime. It suffices to disable one of them to make recast generate correctly again. In edit mode it works ok. I use version 4.3.26.

Hi

Sorry for the late reply, I have been away for some time.
This is probably due to static batching.
When this happens the script should log this as a warning, but it’s easy to miss.

When objects are statically batched the script cannot read the mesh data, so it cannot generate a navmesh from it.
You can read more about how to handle this here: https://arongranberg.com/astar/docs/errormessages.html (at the bottom under the heading “Some meshes were statically batched…”)