Raycast vs navmesh graph

Hello!My road is created at runtime,so I may use raycast graph?

Hi

Yes. All graphs can be recalculated during runtime.
See https://arongranberg.com/astar/docs/graph-updates.php