s&box
RustCounter-Strike 2s&boxDeadlock
Wiki
Get s&box on Steam
Browse
OverviewGetting StartedCreating GamesEngine & ToolsDocumentationCommunity GamesResources
s&boxDocumentationGameplayTerrainCreating Terrain
SOURCE 2 · C#
Build and play games with s&box.

Facepunch's game engine and creation platform — make games in C#, or jump straight into community games.

Get s&box on Steam

s&box Wiki

  • Overview
  • Getting Started
  • Creating Games
  • Engine & Tools
  • Documentation
  • Community Games
  • Resources

Tools & Community

  • Getting Started
  • Creating Games
  • Engine & Tools
  • Resources

Platforms

  • RustBattle
  • CSBattle
  • Rust Game Wiki
  • CS2 Skins Wiki
  • Deadlock Wiki

About

  • Official Site
  • Developer Wiki
  • GitHub
  • Get on Steam
NOT AFFILIATED WITH FACEPUNCH STUDIOS · © 2026 s&box Wiki (community)
Docs/Gameplay
Gameplay

Creating Terrain

To add Terrain to your Scene, right click in the Hierarchy and select 3D Object → Terrain from the menu. The Terrain inspector will then prompt you to create, import or link an existing Terrain asset.

Create New Terrain

Once you've created a Terrain GameObject it will be blank, you need to create the Terrain asset which stores all the height maps, control maps, materials, etc. It can then be reused across multiple scenes.

In the inspector window with the Terrain GameObject selected you will be asked how large you want your terrain to be. Pressing Create New Terrain will prompt you where to save your terrain asset.

Heightmap SizeThe size of your heightmap.Higher values increase VRAM usage drastically for combined heightmap and control maps:2048 x 2048 = 24MB4096 x 4096 = 96MB8192 x 8192 = 384MB
World ScaleHow many inches per heightmap texel.A smaller scale gives more precision at the reduction of overall size.<br>A larger scale gives more overall size at the reduction of precision.39 inches ~= 1 meter is a good default
Max HeightThe maximum height your terrain will be in inches.The higher this is the less precision you get at lower values.

Create New Terrain - Terrain Inspector

Link Existing Terrain

If you already have a terrain created in one scene that you want to reuse you can either drag the terrain asset in to automatically create the object, or press link existing and select an existing Terrain asset.

Source: Facepunch/sbox-docs (CC-BY-4.0) · updated 2024-07-19. Read it rendered on the official docs.

More in Gameplay

Clutter
Controller Input
Costs & Filters
Gameplay
Glyphs
Input
Inventory
Inventory & Weapons
← All documentation

Community wiki — not affiliated with Facepunch Studios. For the latest and most authoritative information, see the official developer wiki.