Not allowed to access vertices on mesh 'G17'

Hey,
I’ve been working on updating the recast graph when I place a building in the way that you said i should try in another post, as well as adding some other things that you said in a similar post, to make the scan much more efficient, and things seem to have gone well, except for I get an error when updating the graph stating “Not allowed to access vertices on mesh ‘G17’”.
Any idea how I should go to fixing this?

Hi

You need to mark the mesh with read/write enabled as not static.
Unfortunately Unity does not allow my scripts to access the vertices even if it is just in the editor.

thanks, that fixed it.