s&box
RustCounter-Strike 2s&boxDeadlock
Wiki
Get s&box on Steam
Browse
OverviewGetting StartedCreating GamesEngine & ToolsDocumentationCommunity GamesResources
s&boxDocumentationScene
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/Scene
Scene

Scene

S&box uses a scene system, similar to Godot and Unity. Scenes are JSON files on disk that are fast to load and switch between.

Everything in your game is built from Scenes, GameObjects, and Components working together.

Scenes

A Scene is your game world. Everything that renders and updates at one time should be in a scene. Scenes can be saved to disk, loaded, and switched between at runtime.

GameObjects

A scene contains GameObjects: world objects with a position, rotation, and scale. They can be arranged in a hierarchy so children move relative to their parents.

Components

GameObjects contain Components that provide modular functionality. A ModelRenderer renders a model, a BoxCollider makes it solid. You create games by programming new Components.

GameObjectSystem

Systems that operate on GameObjects across an entire scene, useful for game managers and global logic.

Prefabs

Reusable GameObject templates that can be instantiated at runtime or placed in scenes. Supports instance overrides and nested prefabs.

Source: Facepunch/sbox-docs (CC-BY-4.0) · updated 2026-04-10. Read it rendered on the official docs.

More in Scene

Advanced Topics
Async
Camera Effects
Component Interfaces
Component Methods
Component Versioning
Components
Events
← All documentation

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