menu_bookDocumentation
Mapping - s&box Editor Documentation
Mapping
s&box includes Hammer, the Source 2 level editor, for creating maps and environments. Build worlds with brushes, props, lighting, and gameplay entities.
Getting Started
Open Hammer from the Asset Browser or press F9 in the editor.
Editor Interface
Hammer consists of:
- 2D Views — Top, front, side orthographic views
- 3D View — Real-time 3D preview with lighting
- Tool Properties — Settings for current tool
- Asset Browser — Models, materials, sounds
- Outliner — Object hierarchy
Basic Workflow
- Create Geometry — Use block tool to make brushes
- Apply Materials — Paint surfaces with textures
- Add Props — Place static and physics models
- Lighting — Add light entities
- Gameplay — Place spawn points, triggers
- Compile — Build the map for runtime
Brushes vs Props
- Brushes — Simple convex geometry, good for walls/floors
- Props — Complex models, better detail, movable
Entity Types
- infoplayerstart — Player spawn point
- light_omni — Point light
- light_spot — Spot light
- env_sky — Sky and global lighting
- trigger_multiple — Gameplay trigger
Compiling
Press F9 to compile. Levels compile to a runtime format that s&box can load.
Shortcuts
| Key | Action |
|---|---|
| Shift+B | Block tool |
| Shift+T | Texture tool |
| Shift+E | Entity tool |
| 1-4 | Switch 2D/3D views |
| Space+Drag | Clone selection |
Hammer Docs
See Hammer Shortcuts for more keyboard commands.
Was this helpful?