Room API guides

Each guide explains one part of the Room API with a working room: when to use it, how it behaves and its limits. The reference pages give every member’s exact signature. If you’re new to the Room API, start with State sync and interest.

Pages

State sync and interest
Declare entities, sync them as binary deltas and send each connection only what it should see.
Calls
Ask the room to do something and get its answer, typed from one declaration.
Ownership
Let players write the values they control while the room decides what everyone sees.
Presence
Show who’s in the room, with a name and a small status per player.
How rooms hibernate and wake
Find out what is saved when a room hibernates, and what happens when a player wakes it.
Room state and the managed store
Find out what IRT saves for a room, when it’s written and what a crash loses.
Player data, collections and leaderboards
Keep a player’s progress across rooms, store what players make and rank players.
Lag compensation
Check a shot against where the target was on the shooter’s screen.
Physics
Simulate rigid bodies and characters with Rapier 2D or 3D, stepped by the room and predicted on the client.
Bots
Add players the room drives itself, which give their seat to a person who joins a full room.
Replays and clips
Record a room tick by tick, keep its best moments as clips and play them back.
Lobbies and parties
Gather players in a lobby, hand them off to a room of another type and keep a party together.
Proximity voice
Let each listener hear the closest speakers they can see.