Editing a level
Open a level
Section titled “Open a level”Find the level in the Project window, for example by searching ext:level hideout_master, and double-click it. It
opens as a tab with the viewport, and the Outliner and Inspector switch to it.
A shipped level opens marked read-only. That only means you haven’t changed it yet: make a change and it turns edited · shipped, and your copy of it becomes part of your mod when you save.
If you’re new to how levels fit together, read Entities and components and Prefabs and instances first. They explain most of what you’ll see here.
Select
Section titled “Select”Click something in the viewport, or its row in the Outliner. The two always agree. The Inspector then shows the entity: its name and switches at the top, its layer, then one section per component.
Most things you click in a map belong to a placed prefab. The Inspector then says Instanced from a prefab and its fields are locked; see Prefabs and instances for the three ways to change it anyway.
Drag the gizmo in the viewport, or type exact numbers into the transform in the Inspector. Numbers are in centimetres with Z up, and rotation is in degrees; see Space and transforms.
| Gizmo | Key |
|---|---|
| Move | WG |
| Rotate | ER |
| Scale | RS |
The quickest way to add a prop is to drag it in: drag a model or a prefab level from the Project window onto the viewport. A bubble says what will happen and where; let go to place it.
- Drag a model or prefab from the Project window…
- …onto the viewport. The bubble says where it will land.
Dropped on the viewport, it lands where the pointer meets the scene, snapped to half-metre steps along the ground. Dropped on an Outliner row, it goes under that row, or before or after it.
To start from an empty entity instead, use the Entity menu:
| Command | Adds |
|---|---|
| Entity▸New Child Entity | an entity under the selected one |
| Entity▸New Entity After | an entity beside the selected one |
| Entity▸New Root Entity | an entity at the top of the level |
Give it components
Section titled “Give it components”At the bottom of the Inspector, Add component opens a search over every script in the game. Type part of a
name, box_trigger say, and press Enter to add it. Each component’s section has a menu (the ⋮ at its
right) to reset its fields or remove it.
Copy, duplicate, delete
Section titled “Copy, duplicate, delete”| To | Use |
|---|---|
| Duplicate the selection in place | Edit▸Duplicate CtrlD |
| Copy, then paste somewhere else | Edit▸Copy CtrlC, then Edit▸Paste CtrlV |
| Rename | Edit▸Rename… F2 |
| Delete | Edit▸Delete Delete |
A copy is a real copy: everything in it gets new identities, and references inside the copy point at the copy, not back at the original.
Rearrange the tree
Section titled “Rearrange the tree”Drag rows in the Outliner to give an entity a new parent or a new place among its siblings. Entity▸Move to Root lifts the selection to the top of the level. Remember that a child’s position is measured from its parent, so a new parent can move it in the world.
See what you changed
Section titled “See what you changed”The Outliner marks every entity you added (A), changed (M) or removed, and its Changed view hides everything else. In the Inspector, a dot marks each changed field, and its reset arrow puts the value back. See Shipped files and yours for every way back.
The Inspector
Section titled “The Inspector”The Inspector edits whatever you select, entity or file, and every field kind has its own editor: numbers, switches, colours, lists you can add to and reorder, and references you can set by picking or by dragging a file onto them. Filter properties at the top finds a field by name, or by its value.
Where to go next
Section titled “Where to go next”- Making and using prefabs to reuse what you built.
- Testing to see it in the game.
