Skip to main content

Prefab Brush

The Prefab Brush paints prefabs onto the map with a brush, the way the terrain tools paint the ground. Use it to fill an area with trees, rocks, bushes or debris in a few strokes instead of placing each one. The prefabs come from a prefab profile, and the brush picks from them at random.

The Prefab Brush panel next to the scene view, with the brush outline and the planned prefab rings on the terrain

Open the Prefab Brush​

Click the Prefab Brush button on the tool bar, or open ToolsPrefabsPrefab Brush.

From top to bottom, the panel has the Prefab Profile field, the Paint and Erase buttons, the Brushes pictures, then the Brush and Placement settings. Until you pick a prefab profile, the panel shows only Prefab Profile.

Pick the prefab profile​

The brush paints the prefabs of the prefab profile in Prefab Profile:

  • Drag a prefab profile from the Content Browser, folder Profiles > Prefab Profiles, onto Prefab Profile.
  • Or click Prefab Profile and pick one. New Profile at the end makes a new prefab profile and uses it.
  • Right-click Prefab Profile and click Open in Editor to change its prefabs in the Prefab Profile Editor. When you save the profile there, the brush paints the new prefabs at once.

A prefab that is switched off, has weight 0 or is not found is not painted. RustEdit remembers the prefab profile the next time you start it. When the profile is gone, the field shows it as missing and the rest of the panel hides.

How to paint​

  1. Pick a prefab profile in Prefab Profile.
  2. Click Paint.
  3. Pick a brush picture under Brushes, and set Size.
  4. Move the pointer over the terrain. The scene view shows the brush outline and a ring for each prefab the next stamp will place.
  5. Hold the left mouse button and drag over the terrain. The first stamp lands when you press. Then a new stamp lands each time the brush has moved the Spacing distance. Holding the mouse still does not keep painting.
  6. Release the button. The Notifications panel says how many prefabs were placed ("Placed ... prefabs").

Each stroke is one undo step: press Ctrl+Z to take the whole stroke back.

While the brush is on, a click in the scene view paints instead of selecting. The brush shows what it will do before you press: the rings are exactly where the next stamp places its prefabs. A new random layout is rolled after each stamp, and when you move the pointer a little.

How to erase​

  1. Click Erase, or hold Shift while you paint.
  2. Drag over the prefabs you want to remove. Prefabs that will be removed show a red ring with a cross.
  3. Release the button. The Notifications panel says how many prefabs were removed.

Erase only removes prefabs that are in the prefab profile and switched on, with a weight above 0. It never removes locked or hidden objects, or parts of a placed monument. A prefab is removed when its pivot is inside the brush outline.

Stop the brush​

Click the mode button that is on (Paint or Erase) again, or press Esc with the pointer over the scene view. The brush also stops when you close the panel, switch to another tab in the same window or start play mode, and when another tool turns on, such as the terrain tools, the Cliff Brush, the Building Tool or spline edit mode. Only one tool is on at a time. See The Scene View.

The scene view preview​

You seeIt means
A light line around the brushThe edge of the brush picture. Nothing is placed outside it. A fainter inner line shows where the picture is half strength. The lines turn red while you erase.
A faint second outlineWhere the stamp can land when Scatter is above 0.
A ring in the prefab's color in the profileA prefab the next stamp places. The ring shows its size. A line shows which way is up and another which way it faces.
A red ring with a crossA spot that is blocked: off the map, outside the Slope range, or too close to another prefab (Min Distance). In erase mode, a prefab that will be removed.

The brush outline is always drawn on the terrain, even when Place On is Everything, so it can be hidden under roofs or rocks.

How the brush picks spots​

The brush picture is a mask. Its brightness at a spot is the chance that a prefab lands there: in white areas, most tries land, in gray areas fewer do, and where the picture is almost black (outside the outline) nothing lands. So a stamp often places fewer prefabs than Density: Density is how many it tries.

Which prefab goes at each spot is picked by Weight. A soft brush picture gives a thick middle and a thin edge, which looks more natural than a hard circle.

tip

The brush has no topology, biome or height filter. To keep prefabs off roads or rivers, use Slope and a smaller brush, or erase them after.

Options​

Brush​

OptionWhat it does
BrushesThe brush picture. It is the same set of pictures as the terrain tools, including your own pictures in the Brushes folder. See Brushes.
SizeThe width of the brush in meters. 1 to 500, default 20.
RotationTurns the brush picture, in degrees. It does not turn the prefabs. 0 to 360, default 0.

Placement​

OptionWhat it does
DensityHow many prefabs each stamp tries to place: a number between the low and the high end, picked for each stamp. 1 to 100, default 3 to 6.
SpacingHow far the brush moves between two stamps, in percent of the brush size. 0 to 200, default 50. At 0, every mouse move is a stamp.
ScatterHow far each stamp can land from the pointer, in percent of the brush size. 0 to 100, default 0.
Min DistanceThe closest two prefabs of the profile can be, in meters. Prefabs already in the world count too. 0 to 50, default 2.
SlopeThe slopes of ground a prefab is placed on, in degrees from flat. 0 to 90, default 0 to 90 (any slope).
Place OnWhat the prefabs stand on: Terrain (on the ground only, also under other prefabs) or Everything (on top of whatever is there, prefabs too). Default Terrain.

RustEdit remembers these settings and the brush picture the next time you start it.

Troubleshooting​

ProblemWhat to do
"Pick a prefab profile with prefabs first, in the brush's Prefab Profile field"No prefab profile is picked, or every prefab of it is off, has weight 0 or is missing. Pick one, or change it in the Prefab Profile Editor.
Nothing lands, or fewer prefabs than expected.Raise Density, lower Min Distance, widen Slope, or use a brighter brush picture. Red crosses show blocked spots. See How the brush picks spots.
A press does nothing.The pointer must be over the ground when you press.