Roadifier is an open-source road mesh generator for Unity. Basically Roadifier takes a list of points and a terrain object and automatically generates a mesh representing a road of the specified width that follow the terrain’s height and normals. It’s great to make roads in strategy games using the standard Unity terrain, and with a couple of changes it could be adapted to make train tracks, rivers and much more!
Source code available here: Roadifier @ GitHub