Learn how to create, manage, and find game lobbies for any engine.
Waiting
state and moves to an In-Game
state when the match begins.
create_lobby
function from the SDK. You typically need to provide a few key pieces of information:
public
(discoverable by anyone) or private
(requires an invite code).update_lobby
function.
update_player_data
function.find_match
function.OnLobbyUpdated
: Fires when any data in the lobby changes. Use this to refresh your UI.OnPlayerJoined
: Fires when a new player enters the lobby.OnPlayerLeft
: Fires when a player leaves.OnMatchStarted
: Fires when the host starts the match and the game server is ready with connection info.invite_code
that is generated. Share this code among friends.