Wayshaper Docs
View all packages

Building paths

Roads and intersections

Configure the Road component, elevation modes, road profiles, banking and intersections that join any number of roads.

Wayshaper 26.12.0Unity 6000.0+URP · HDRP · Built-in

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.

TabWhat it holds
RoadProfile, elevation mode, height offset, terrain smoothing, shadows
KnotsWidth and bank for each knot
JunctionsIntersections at the start and end, Intersection at Start and Intersection at End to add one, and Snap Ends to Intersections
TerrainWhether 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

SectionSettings
ShapeWidth, 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
BankingAutomatic banking from curvature, the largest angle, the angle at a 100 metre radius and the easing distance
MaterialsSurface, shoulder, curb and sidewalk materials. An empty curb slot uses the sidewalk material, and other empty slots use the surface material
JunctionsIntersection material and texture size, corner radius, crossing material and length
TerrainHow the road shapes, paints and clears the terrain. See Terrain shaping
AdvancedChunk 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.

TabWhat it holds
ShapeProfile, corner radius override, crossings
RoadsThe joined roads, with Disconnect, Add Road and Snap Road Ends to Centre
TerrainWhether 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.

Email supportJoin Discord

Wayshaper 26.12.0

Search documentation