Building paths
Roads and intersections
Configure the Road component, elevation modes, road profiles, banking and intersections that join any number of roads.
The Road component
Add a road with GameObject > Wayshaper > Road, or add the Wayshaper/Road component to a game object. It needs a Spline Container, which is added for you.
| Tab | What it holds |
|---|---|
| Road | Profile, elevation mode, height offset, terrain smoothing, shadows |
| Knots | Width and bank for each knot |
| Junctions | Intersections at the start and end, Intersection at Start and Intersection at End to add one, and Snap Ends to Intersections |
| Terrain | Whether the road shapes the terrain, its priority and a rebuild button |
Elevation
- Follow Terrain lays the road on the original terrain and smooths its height over the Terrain Smoothing distance. Knot heights are ignored. This is the quickest way to lay roads across a landscape.
- Follow Spline uses the spline exactly, so the terrain is cut and filled to meet it. Use it for embankments, cuttings and ramps.
Profiles
| Section | Settings |
|---|---|
| Shape | Width, cross segments, crown, surface offset and texture length; the edge style (Shoulder, Curb and Sidewalk, or None) with its widths and the skirt that hides gaps on slopes |
| Banking | Automatic banking from curvature, the largest angle, the angle at a 100 metre radius and the easing distance |
| Materials | Surface, shoulder, curb and sidewalk materials. An empty curb slot uses the sidewalk material, and other empty slots use the surface material |
| Junctions | Intersection material and texture size, corner radius, crossing material and length |
| Terrain | How the road shapes, paints and clears the terrain. See Terrain shaping |
| Advanced | Chunk length, colliders and curve sampling |
The surface UVs run from 0 at the left edge to 1 at the right edge, and along the road in metres divided by the texture length, so lane markings can live in the texture.
Banking
With Auto Bank on, the road tilts into curves by Bank at 100 Metres degrees for a 100 metre radius, more for tighter curves, up to Max Bank. Bank Smoothing eases the tilt in and out. The bank value on each knot adds to the automatic angle, so you can bank a straight or flatten a curve by hand.
To reverse a road, choose Reverse Direction from the menu in the inspector header. Knot widths and banks move with the knots.
Intersections
An intersection joins the ends of roads. Each road is trimmed back so it ends at the edge of the paved centre, and the corners between neighbouring roads are rounded by the corner radius. Roads of different widths and profiles can share one intersection.
| Tab | What it holds |
|---|---|
| Shape | Profile, corner radius override, crossings |
| Roads | The joined roads, with Disconnect, Add Road and Snap Road Ends to Centre |
| Terrain | Whether it shapes the terrain and its priority |
The intersection uses its own profile, or the profile of the first road joined to it when it has none. A single road gives a turning circle, two roads a joint, three a T junction and four a crossroads.
Performance
Meshes are split into chunks of Chunk Length metres so the camera culls what it cannot see. Generated meshes are saved in the scene and nothing is rebuilt at runtime unless you call Rebuild.
Still stuck?
Bring the scene with you.
Include the Wayshaper version, Unity and render-pipeline versions, the road or river profile involved, any inspector warnings, relevant logs, and a minimal scene with its Terrain Originals folder.