Foliage
Foliage paints grass onto a terrain. You brush it on where you want it, and the engine fills the area with thousands of individual blades that follow the ground, even when you sculpt underneath them later.
Painting grass
- Select the terrain.
- In the Inspector's Terrain section, open the Foliage tab.
- Click a grass type tile. This arms the foliage brush.
- Drag over the terrain in the viewport.
Grass appears while you drag, across chunk edges too. Blades are short (10 to 40 cm by default), so move the camera close to the ground to see them properly.
Grass types
Each tile is one type of grass. It shows the blade colours, the name, and roughly how many blades it has on the terrain. The last tile, Add type, makes a new one. A terrain can have up to eight types.
Select a type to change it:
| Setting | What it does |
|---|---|
| Name | The type's name |
| Density | How many clumps grow per square metre, 1 to 128. Default 48 |
| Blades / clump | How many blades grow from each clump, 1 to 16. Default 5 |
| Height | The shortest and tallest blade, in metres |
| Width | The narrowest and widest blade, in centimetres |
| Enabled | Hide or show the type |
Remove type deletes the selected type (one always remains).
Blades per square metre is density times blades per clump: 240 with the defaults. Grass looks natural in tufts, so raising Blades / clump usually looks better than raising Density, and costs less.
The brush
| Setting | What it does |
|---|---|
| Mode | Paint, Erase, Grow or Trim |
| Size | The brush radius, in metres. The mouse wheel over the viewport changes it |
| Strength | How quickly the brush works while you hold the button |
| Soft edge | How much of the brush fades out toward its rim |
| Grow to | The height Grow and Trim aim for, 25% to 300% of the type's own height |
- Paint adds grass. Light painting gives thin grass; painting more fills it in, so the soft edge of the brush thins out gradually instead of ending in a hard circle.
- Erase removes it.
Long grass and mown paths
Grow and Trim change how tall the grass is in one area without adding or removing any.
- Grow makes grass taller, up to the Grow to value.
- Trim makes it shorter, down to the Grow to value. Set Grow to to 100% and Trim puts grown grass back to normal.
Use them for long grass in a hollow, a mown lawn with rough edges, or a trodden path that stays short without going bald.
Two things to know:
- Height belongs to the ground, not to one type: growing a hollow makes every type in it taller.
- Trimming only shortens. To make a bare gap, use Erase.
Good to know
- Foliage painting is not on the undo stack. Use Erase to take paint back.
- The grass types themselves are not saved yet. The painting is saved with the scene, but the type list (names, colours, density and other settings) goes back to the single default Grass when the editor restarts. Keep the default type for anything you want to keep.
- For rocks, shrubs and trees, place models instead: see Models.