Skip to main content

Prefab Spline

RustEdit Pro

The Prefab Spline settings make the splines of a spline entity place prefabs: in a row along the line, such as a fence, or scattered inside a closed line, such as a forest. They show in the Spline Entity panel when you select a spline entity and click Prefab at the top of the panel.

Set up a spline​

  1. In the Splines table, pick the spline's Type: Prefab Line or Prefab Area.
  2. Click the row to see the Settings tab of its spline under the table.
  3. Pick a prefab profile in Prefab Profile. Its prefabs and weights are copied into the spline, and a saved profile updates them.

The rows of the type set where the prefabs go:

  • Prefab Line: spacing and side.
  • Prefab Area: density, holes and the gap between prefabs.
  • Both: jitter, slope, ground and seed.

Make the prefabs​

  • With Live on, the prefabs are made again a moment after each change to the spline or a row.
  • Make Prefabs and Remove Prefabs do it by hand.
  • The prefabs are normal prefabs under an empty object in the Hierarchy.
warning

A prefab changed by hand is lost at the next remake.

Every change of these settings is an undo step, also Make Prefabs and Remove Prefabs. When you delete the spline entity, its prefabs are deleted with it, in the same undo step. See Prefab Splines.