This guide introduces the Play SDK and explains how to integrate core multiplayer features into VIVERSE Studio content. It covers setup and usage for features such as matchmaking, session management,
BEFORE GETTING STARTED: you must , including App ID creation in VIVERSE Studio, before requesting Play SDK services.
Initialize the `playClient` instance
Before using any Play SDK features, you must initialize the client instance. This global reference ensures that the Play SDK is available throughout your application.
globalThis.playClient = new globalThis.viverse.play();
Matchmaking API
The matchmaking and networking APIs must then be initialized individually.
NOTE: Support for random and ticket-based matchmaking is under development.
Setup Actor Info
Set the player’s session ID, name, and custom properties in the current room.
This API should be called before creating or joining a room. The SDK will store the actor information and automatically attach it to
the player upon entering the room.