Have to rescan after every rebuild

Every time I make a code change my recast graph resets and needs to be re scanned. I am not sure what would be causing this.

Hi

When you change your code, Unity will recompile your scripts and then reload everything. When the reload happens, everything that is not serialized by Unity will get discarded. It is usually not desirable to save graph data in the editor since it is pretty large and would add a large amount of bloat to your scene files. You do not have to rescan the graphs every time you change your scripts however, they will be scanned automatically when the game starts.

Cool, did not know this. I am sure its somewhere in the documentation. Thanks for the fast reply.