Skip to main content

Terrain

A terrain is ground with hills: a square of land you shape by dragging on it, a bit like sculpting clay. It paints itself — grass where it's flat, rock on steep slopes, snow up high if you want, each with its own surface texture — and everything that walks, rolls or drives follows its hills.

Add a terrain​

Objects → + Add → Terrain (hills). It starts with gentle random hills, 40 × 40 m, centred in the scene, and the camera zooms out to show all of it.

A new terrain
A new terrain

New projects also have a flat Ground; delete it if the terrain replaces it, or keep it as a floor around the hills.

Shape it​

Select the terrain, open Inspect and tap 🖌️ Sculpt. Then drag on the terrain in the 3D view:

ToolWhat it does
RaisePushes the ground up under the brush. Holding still keeps raising.
LowerDigs it down (valleys, lakes, paths).
SmoothRounds off bumps and sharp edges.
FlattenLevels the ground to the height where the drag started — roads, building plots, a flat arena on a hill.
🎨 PaintPaints a surface onto the ground with a soft edge: a dirt path, a sandy beach, a cobbled road, rock or snow patches, more grass. Pick a surface (Grass, Rock, Dirt, Snow, Stones, Sand), each with its own texture, and change its Tint for any color (dark grass, red rock…). Auto erases paint back to the automatic look.
🌳 TreesPaints trees: 3D models near the camera, flat pictures far away, thousands at a time (Unity's Paint Trees). See below.
🌿 DetailsPaints grass, flowers and small stones that the terrain draws itself, thousands at a time, swaying in the wind (Unity's Paint Details). See below.
🕳 HolesCuts holes in the ground — cave mouths, pits, a well. See below.

Brush size is the radius in meters; Strength is how fast it works. A yellow ring shows where the brush is. Each drag is one step of Undo.

While sculpting, one finger (or the left mouse button) sculpts, two fingers (or the right mouse button) move and zoom the camera. Tap Stop sculpting to turn the camera again.

card terrain

Painting changes only the colors, not the shape, and stays when you reshape or change Detail. 🧽 Clear paint removes all of it.

Paint with your own images​

Next to the built-in surfaces, + Image adds a surface made from a picture: one already in your Assets, a new one from your phone's gallery or your computer (Import image), or one of the Free textures (lawn, forest floor, gravel, sand, rock, cobblestones, stone slabs, wood planks, blue tiles). It gets its own button with the picture on it; paint with it like any other surface.

SettingWhat it does
TintWhite keeps the picture's own colors; any other color tints it.
Image sizeHow many meters one copy of the picture covers before it repeats.
🗑 Remove imageTakes it off the list; ground painted with it turns to dirt (Undo brings it back).

A terrain can have up to 4 image surfaces. Use seamless textures (made to repeat without visible edges) — the free ones are. A normal photo shows a seam every time it repeats. Big photos are scaled down to 2048 pixels when you import them, so they stay light on phones.

Paint trees​

🌳 Trees paints forests (Unity's Paint Trees). The terrain draws its trees itself, a patch at a time, so thousands cost about as much as a few objects. Near the camera a tree is its 3D model; farther away it becomes a flat picture of itself that turns to face the camera (a billboard), and past the Tree distance it is not drawn.

A hilly terrain with 3000 painted trees: models near the camera, billboards on the far hills

Each kind of tree is a prototype. + Tree adds one: pick a 3D model (add one first from Objects → + Add → Free models library…). Tap a kind's button to paint with it, then drag over the terrain. Trees stand on the ground with a random turn and size, follow the hills when you reshape them, and skip holes and slopes too steep to stand on.

SettingWhat it does
ModelThe kind's 3D model.
ColliderTrees of this kind get a trunk (an upright cylinder) that blocks the player, balls and cars, stops rays and pathfinding. Off for bushes you walk through.
Trunk radius / Trunk heightThe trunk's size in meters for a tree at scale 1; each tree's scale grows it.
EraseThe brush removes trees instead. This kind only removes only the chosen kind.
DensityTrees per 100 m². Painting over a spot again only fills gaps: it never piles them up.
HeightEach tree gets a random scale between Min and Max (1 = the model's own size).
Lock width to heightThe tree keeps its shape. Turn it off to give it its own random Width.
Random rotationEach tree is turned a random way round its trunk.
Mass placePlaces Trees trees of every kind at random over the whole terrain, keeping the ones already there.
🧽 Clear this kind / 🗑 RemoveClears the kind's trees / removes the kind and its trees. 🗑 Clear all trees clears every tree.
Tree distanceHow far from the camera trees are drawn (default 400 m). They shrink away before it, so there is no hard edge.
Billboard startFarther than this (default 50 m), trees are drawn as billboards.

Each drag is one Undo step. Trees cast and take shadows, billboards too. A billboard is made from the model the first time it is drawn, eight views round it, so it shows the right side of the tree and is lit like the model.

tip

Trees are not objects: events and scripts can't pick them, and they don't fade with Fade in way. For a few trees you want to script, place model objects instead. For grass and flowers use 🌿 Details.

Paint grass and flowers​

🌿 Details paints small things that cover the ground in great numbers: grass, flowers, pebbles. They are not objects — the terrain places and draws them itself, a whole patch at a time, so tens of thousands cost about as much as a few objects. Each kind is a layer:

AddWhat it draws
+ GrassTufts of grass blades, no picture needed.
+ ImageTwo crossed cards showing a picture with see-through parts (flowers, ferns, weeds).
+ ModelCopies of a 3D model (stones, mushrooms, small plants).
The Details tool with a grass layer
The Details tool with a grass layer
Grass painted over the hills
Grass painted over the hills

Tap a layer's button to paint with it and drag over the terrain. Going over a spot again fills it up to the Target strength; Erase removes it again.

SettingWhat it does
Picture / ModelWhat an Image or Model layer shows.
Target strengthHow full the brush paints (1 = the full density, 0.3 = sparse).
DensityMost copies per square meter where it is painted fully.
Height / WidthEach copy gets a random size between Min and Max (meters for grass and images; a scale for models).
Healthy color / Dry colorCopies get colors between the two, in patches a few meters across, like real grass. Images and models are tinted by it (white keeps their own colors).
SwayBends in the wind.
🧽 Clear / 🗑 RemoveClears the layer's painting / removes the layer.
Detail distanceHow far from the camera details are drawn (default 60 m). Further away they thin out and shrink, so there is no hard edge.
Wind speed / Wind size / BendingThe waves that run over the grass: how fast, how wide, how far it bends. A Wind Zone makes it blow harder and turns it while playing.

Details sit on the ground, never in a hole, and follow the hills when you reshape them. They have no collider: players walk through grass. On phones, the quality levels draw fewer of them (Terrain detail density in Project settings → Graphics: Medium draws 60 %, Low 35 %); scripts change it with game.quality.detailDensity.

Cut holes​

🕳 Holes cuts the ground away under the brush, square by square: the terrain, its collider and its grass are gone there, so things fall through. Put a cave, a tunnel or a pit made of other objects below it. Turn on Fill to close holes again; 🗑 Fill all holes closes every one. Pathfinding does not walk over holes.

⛰️ Make hills replaces the terrain with new random hills up to Hill height meters (Undo brings the old ones back); Flatten all makes it flat again.

Settings​

SettingWhat it does
SizeWidth and depth in meters. Making it bigger stretches the same hills.
DetailSquares per side: Low (32), Medium (64) or High (128). More detail = smaller bumps possible, but more work for the phone. Changing it keeps the shape, the paint, the details and the holes. Holes are cut a square at a time, so High makes finer holes.
Grass / Rock / SnowThe colors it paints with. Rock goes on steep slopes.
Snow aboveSnow covers the ground above this height (0 = no snow).
TexturesAutomatic surface detail on the ground you haven't painted: grass blades and clumps, rough rock on steep slopes, soft snow. The colors still decide the look. Switch it off for a plain, raw-colored terrain — everything you paint (Stones, Sand…, and your own images) still shows its texture, so you can texture just the parts you want.
Texture sizeHow many meters one repeat of the detail covers (default 4). Smaller = finer detail.

Physics​

A terrain comes with a Collider (shape Auto), which follows the hills exactly: players walk up them, balls roll down, cars drive over them. Don't give it a dynamic Rigid body — a terrain stays put.

Pathfinding treats a terrain as ground to walk on, not as a wall. Steep slopes are still climbed only as far as the physics allows.

tip

Keep Detail at Medium unless you need small bumps: a High terrain has four times as many triangles. One big terrain is cheaper than many small ones.