How to handle static objects with runtime graph updates?

I was having a problem where runtime recasting graph updates were losing cutouts from some objects, turns out it was because they were set to static.

In the editor static objects do rasterize on the graph, but not at runtime if you update the graph, I’m assuming due to whatever automatic mesh combining etc.

Is there a recommended way to handle static objects and runtime graph updates? For now I’m just leaving the objects as NOT being static.

Hi

Static objects that are combined by unity into a single mesh sadly cannot be read by the recast graph. This is a Unity limitation. It literally does not allow the script to access the mesh.
You can set the recast graph to rasterize colliders instead of meshes. Those can always be read.
See more details at the bottom of this page: Error messages - A* Pathfinding Project