A river runs along a spline. Its surface stays level across the river, so the terrain makes the banks and the bed. The rapids are found automatically where the river steps down. The current carries floating objects along.

A river in the demo stepping down to the sea, with rapids foam on the steps.

A river in the demo stepping down to the sea, with rapids foam on the steps.

Draw a river

  1. Pick GameObject > Polyart > Dynamic Stylized Water > River. A 30 m river appears. You can also drag PF_River from Prefabs/Water into the scene.
  2. Edit the spline with Unity's spline tools. Add the knots downhill, because the water flows from the first knot to the last.
  3. Under 02 - Shape And Detail, set River Width in metres.
  4. Set Surface Detail.
  5. If the water flows the wrong way, turn on Reverse Flow under 03 - Flow.

The surface is rebuilt as you edit the spline.

Keep the river's scale at 1 and set its size with River Width. The inspector shows a warning when the scale isn't 1.

A river's spline knots in the demo, with Unity's spline edit tool on.

A river's spline knots in the demo, with Unity's spline edit tool on.

Surface Detail

Choice Mesh Waves
Auto (by bend, lightest) The lightest mesh. Rows are only added in bends. No
Low (16 x 16 grid) up to Very High (128 x 128 grid) An even grid Yes

With Auto, Bend Detail sets how quickly bends get more rows.

Flow

How fast the water moves is set in the river material, in 02.1 - Flow, with Water Speed (cm/s). Use Flow Field makes the water flow slower at the banks and faster down steep parts.

Rapids (04 - Rapids)

The rapids are found automatically from the slope along the spline.