World building
Place actors, sculpt and paint terrain, edit water and splines, paint foliage and props, bake navigation, and set up world partition streaming and data layers.
World building is the set of tools for shaping a level rather than editing single actors: placing actors from a palette, sculpting and painting terrain, drawing water and splines, scattering props and foliage, baking navigation, and splitting a large world into streamed cells. Each terrain or painting tool is a viewport tool mode: it takes over the mouse while active and gives it back to selection when you leave it.
The mode rail
The rail on the far left switches the Modes panel beside it. The rail and the viewport's mode bar are one state: a mode chosen from the viewport's mode pills or with its Shift shortcut also switches the rail and the panel, and clicking the rail button of the mode that is already active switches the viewport back to it.
| Rail | Panel |
|---|---|
| Select | Place actors: the placeable actor palette |
| Land | The Landscape panel: Sculpt, Paint and Manage |
| Foliage | The foliage tools, brush and palette |
| Paint | Vertex colour painting on editable shapes, with a brush. Its Terrain target opens Landscape › Paint |
| Model | Level geometry modeling; see Geometry tools |
Placing actors
Place actors lists placeable classes by category, with Basic first: an empty actor, character, pawn, the lights, the basic shapes, player start, camera, common volumes, audio volume, sky atmosphere, height fog, decal and text render. The other categories are Lights, Shapes, Volumes, Cinematic, Visual FX, Audio, Gameplay and World.
- Find the actor
Pick a category chip, or type in the search box to search every category.
- Place it
Click a row to spawn the actor in front of the camera, or drag it into the viewport to drop it where you release.
- Undo if needed
Every placement is one undo entry and selects the new actor.
The panel's menu (··· in its header) offers All classes, Recently placed, Show class names and Clear recently placed. The same palette feeds the viewport's Place Actor Here menu and the Outliner's Add Child Actor.
The basic shapes (Cube, Sphere, Cylinder, Cone, Plane, Wedge, Stairs) are built-in primitives one metre across, so every project has them without an asset. Mannequin (1.8 m) is a scale reference figure. Without a material, shapes draw a grid so their size reads off the floor.
Terrain
A terrain is an ATerrainActor. A level can hold several (a tile import creates a grid of them); the Landscape panel edits the selected terrain, or the one a stroke starts on. With no terrain in the level, Sculpt and Paint offer New landscape… instead of their tools.
Creating a landscape
The New landscape dialog creates a flat terrain or imports a heightmap. Set the material layers, the transform and the layout: section size, sections per component and component count, with the resulting resolution and area shown. Location is the centre of the new terrain, Yaw turns it about the vertical axis, the X/Y scale (linked) is the quad size and the Z scale is the height scale. A heightmap picked from outside the project is copied into the project's Terrain folder first, so the level never references a file only your machine has. Fill world picks the component count that spans every actor in the level. Create spawns and shapes the terrain as one undo entry.
Sculpting and painting
The Landscape panel has three tabs:
| Tab | Contents |
|---|---|
| Sculpt | Tools: Sculpt, Smooth, Flatten, Ramp, Erosion, Hydro (a hydraulic erosion pass over the whole terrain), Noise, Retop, Mirror, Region, Copy (see Landscape). The Brush section: brush type (circle, alpha mask, or the mask tiled as a pattern), falloff (Smooth, Linear, Tip), size, falloff, strength, and Use slope flatten, which flattens toward the slope under the brush instead of a level height |
| Paint | All eight weight layers, each with its coverage, plus the visibility (hole) layer. + selects the first layer slot that has no texture yet |
| Manage | New, Select, Tiles (import a heightmap as a grid of terrain tiles) and Import, plus edit layers, landscape splines, noise-stack generation, erosion, tile streaming and heightmap export |
- Pick a tool
Choose Land on the rail, open Sculpt and pick a tool.
- Stroke
Drag in the viewport. Hold Shift to invert the tool. Holding the brush still keeps applying it, so a held Sculpt builds up. The brush ring follows the ground so you can see what it covers on slopes, and it follows a rotated or scaled terrain. Pressing on another terrain than the one being edited switches the panel to it. A stroke over a selected actor sculpts rather than moving the actor.
- Paint layers
Switch to Paint, choose a layer and stroke. Painting the visibility layer cuts holes in both the rendered surface and the collision; the Sculpt tab's Visibility tile switches to it.
Each stroke is one undo entry, whatever its length. Undo puts the edit layer back as well as the heights, so an undone stroke stays undone when you sculpt next to it, toggle a layer or save.
Painting vertex colours on a mesh
Paint on the rail paints the vertex colours of an editable shape (a shape made in Model mode, or a static mesh converted with Convert to Editable Mesh). Its Target row also has Terrain, which opens Landscape › Paint, where terrain layers are painted. Mesh paint needs no landscape. Click a shape to make it the target, then drag across it; a drag that starts off the shape begins painting when it reaches it. The ring on the surface is the brush, and its inner ring is where the falloff starts. With the brush over a static mesh that is not editable yet, the panel offers Convert to Editable Mesh. Texture painting and per-instance painting of meshes are not available.
| Control | Effect |
|---|---|
| Mode | Paint blends toward the colour; Erase blends back toward the unpainted white |
| Radius | Brush radius in metres, measured in the world, so a scaled shape paints the disc the ring shows |
| Strength | How far one dab moves a vertex toward the colour, 0 to 1 |
| Falloff | 0 is a hard disc; 1 fades from the centre to the rim |
| Red, Green, Blue, Alpha | The colour painted |
| Write R, G, B, A | Which channels a stroke writes. A stroke with only G ticked leaves red, blue and alpha as they were, so each channel can carry its own mask |
| Whole mesh | The bucket fills every vertex with the colour; the eraser restores every vertex. Both respect the channel mask |
A stroke, a fill and an erase are each one undo entry. The colours live on the shape itself, so they save with the level and render through the mesh's vertex colour, which materials read as the vertex colour node.
Layer tiling, cliffs and distance variation
The terrain's Layer Tiling sets how often the layer textures repeat across the whole terrain. Three groups of properties on the terrain refine it:
| Property | Effect |
|---|---|
| Layer 1-8 Tiling Scale | Multiplies Layer Tiling for one layer, so a fine gravel and a broad rock can share a terrain. 1 keeps the base tiling. |
| Slope Triplanar Angle, Slope Triplanar Tile Size | Surfaces steeper than the angle read each of the four splat layers in world space along the two vertical planes, so cliffs do not smear down the heightmap UVs. 0 turns it off; the tile size is in metres. |
| Macro Variation Scale, Macro Variation Strength | Modulates the albedo with a low-frequency read of layer 1, fading in between 20 m and 120 m from the camera, so a far view of repeating layers shows variation instead of a grid. Scale is a fraction of Layer Tiling; 0 turns it off. |
The options apply to the four-layer splat shading on both the clustered terrain and the fallback chunk mesh (which takes the cliff normal from its mesh normals). The cached virtual-texture composite (see Virtual texturing) honors all of them too, with two differences: a cached page has no camera, so macro variation fades in with the page's mip (none at mip 0, full from mip 2), and cliffs use a coarse 512-square copy of the heightmap's normals and heights.
Where terrain edits are saved
Sculpted heights and painted weights are written beside the level file when you save it: the sculpt as the terrain's edit-layer stack (<level>_Terrain<id>.mtel, base heights plus every layer), and the weights as _Weights.png and _Weights2.png images. The terrain component points at those files, so the level records them like any other asset reference, and a reopened level and a packaged game build the terrain from the saved stack. Every paint stroke counts, whichever tool made it, and so does an undo.
Exported heights use a 16-bit format that is unsigned and square-only. A terrain sculpted below height zero exports with a negative Height Offset so the valleys survive; a non-square heightfield refuses to export. See Landscape.
Water
Water mode (Shift+4) and Window ▸ Water edit water bodies. The panel lists the level's bodies and creates oceans, lakes, rivers and custom bodies, and has a table of the selected body's spline points. In the viewport, Ctrl+click places a body, and dragging a point moves it on the body's own water plane, so a lake above the ground keeps its height. Panel edits and viewport drags make the same single undo entry. Lake and River in the palette spawn a water actor with a preset spline. Body types, waves, flow, blending, zones and floating are covered in Water bodies.
Splines
Spline mode edits the points of the selected actor's Spline component:
| Input | Action |
|---|---|
| Click a handle, drag | Select and move the point on the horizontal plane through it |
| Alt + drag | Move the point up and down |
| Shift + click the curve | Insert a point |
| Delete | Remove the selected point |
| Ctrl + click | Add a point after the last one, or place a new spline actor when none is selected |
Props
Props mode (Shift+5) places, paints, erases and scatters Smart Props along the surface under the cursor. Props land on the meshes you can see and select. See Data and gameplay editors for authoring Smart Props.
Foliage
Foliage on the rail (or Shift+6) paints instanced meshes and grass across terrain and meshes. Everything it places is stored in the level in one Painted Foliage container.
- Add a foliage type
Click Add Type and pick a mesh; leave the mesh empty for a grass clump.
- Tune the type
The type's settings open as a tab beside Details: density, radius (minimum spacing between instances of the type), scale range and scaling mode (Uniform, Free, Lock XY), align to normal with a maximum angle, random yaw, slope and height limits, cull distance, impostor use and impostor resolution, collision and whether the type affects navigation (see Foliage).
- Paint
Drag in the viewport. [ and ] or the wheel resize the brush, Delete erases under the cursor, and Esc cancels a stroke.
| Tool | What it does |
|---|---|
| Paint | Adds instances of every ticked type up to its density. Holding the brush still does not stack more |
| Erase | Removes instances of ticked types under the brush |
| Reapply | Re-rolls scale and rotation of existing instances against the current settings, without moving them. In the tool grid and on the toolbar strip |
| Lasso | Selects instances inside a freehand loop; Delete removes them |
| Single | Places one instance per click |
| Fill | Fills the brush disc to full density |
Surface chooses whether the brush lands on Terrain, Meshes or Both. On a mesh, instances land on its triangles, not on its bounding box (a skinned mesh, or one too large to trace, still uses the box). Ticking or unticking a type in the palette is one undo entry.
A grass type with no mesh, no cull distance of its own and no align-to-normal is drawn as a GPU batch: one draw for the whole row. Giving it a cull distance or aligning it to the surface moves it to the slower per-instance path. Mesh types are GPU batches too, with octahedral impostor cards that fade in past the impostor distance, unless they align to the surface or scale per axis. Painted instances that stand on the terrain follow it when you sculpt.
Navigation
Window ▸ Navigation opens the Navigation tab beside Details. It lists the level's agent types (radius, height, step and slope); click a row to bake for that agent, click the selected row to edit it, and + to add one. Generation sets cell size, cell height, tile size, region merging and the runtime mode (static, dynamic modifiers or fully dynamic).
Build bakes the navigation mesh in the background, with a progress card and Cancel, and writes it beside the level as <level>.navmesh, which the cook packs with the level. Clear removes it, together with every per-agent <level>.<Agent>.navmesh, so a cleared mesh does not come back on reopen or ship in the cook. If a mesh cannot be saved after a bake, the editor shows an error toast and not saved in the status line. Auto rebuild re-bakes when the terrain under the mesh changes. A Nav Mesh Bounds Volume limits the bake to the box it spans. The settings save with the level, so a re-bake elsewhere gives the same mesh. A successful bake turns on the Navigation debug layer in the viewport.
World partition
World partition splits a large level into grid cells that stream in and out around the player. Open Window ▸ World Partition.
- Add Streamable component to actors
- Generate streaming
- <level>.sectors written
- Runtime streams cells by distance
- Mark what streams
Add a Streamable component to each top-level actor that should stream. The panel counts them.
- Generate the manifest
Click Generate streaming. It buckets every streamable actor into grid cells and writes a
.sectorsmanifest next to the level. - Preview
Start the streaming preview to drive the sector state machine from the editor camera. The preview only changes cell states; it does not spawn or unload anything in the editor. Load cell and Unload act on the selected cell.
- Pin cells
Mark cells Always loaded, or group them into regions. Both persist to the manifest.
After you move streamable actors, use Regenerate streaming.
Data layers
Window ▸ Data Layers lists the data layers of a level saved one file per actor, each with its actor count, its editor load state and its runtime initial state.
- The eye loads or unloads a layer's actors in the editor. Saving never deletes an unloaded layer's actor files.
- The runtime state is what the game, a dedicated server and Play in editor start with; game code changes it later with Set Data Layer Active.
- Buttons add a new layer and add or remove the selected actors from the layer under the cursor.
- The level instance button places another level inside this one; Enter in its Instance name field places it, as Enter does in the map field: its actors join at load, offset by the instance's position, and stay edited in their own level.
- One instance can differ from the others without forking the level: an override replaces a property of one actor of the instanced level (for example a light's intensity) in this instance only, and an instance can leave an actor out, with the actors parented to it. Both are written with the instance in the level's own file and are set over MCP (
level_instance_set_override,level_instance_set_removed).
Editing a level instance in place
Right-click an actor that came from a level instance in the Outliner and choose Edit Level Instance. A banner with Commit and Discard opens above the tree and the instance's actors are drawn in the accent colour; move, change or delete them like any other actor.
- Commit writes the differences as this instance's overrides (a changed property) and removals (a deleted actor), so the instanced level itself and every other instance stay as they were. An actor you moved is stored in the instanced level's own space, so a turned or scaled instance still puts it where you dragged it. One Commit is one undo step.
- Discard throws the changes away and respawns the instance from the level.
- Actors you add while editing are not part of the instance; add them to the instanced level to share them. Only one instance is edited at a time, and opening another level ends the edit without writing anything.
Layers and membership are written to the level's own files, so they merge per actor under source control. Every change here, from adding a layer to moving or removing a level instance, is one step in the undo history, so Ctrl+Z puts the files and the open level back.
Related
- Viewport for tool modes, snapping and the context menu.
- Settings for the terrain, foliage, water and streaming settings pages.
- API: Game, SceneTypes.