Architecture
How PlayServ fits together — your game and its SDK, your game servers, the Backoffice and CLI, and the platform's players, data, cloud functions and game rooms; how the game connects, how keys and environments separate projects, and the SDK's modules.
Cloud Functions & RPC
Run game logic on PlayServ, not in the client — call a cloud function from Unity with PlayServCode, choose a version, know who is calling, call your game server with PlayServRpc, and handle errors and timeouts.
Connect Your Game
Add the PlayServ SDK to your Unity game — get a client key, install the package from OpenUPM or a Git URL, configure it in the PlayServ window, connect for the first time, and upgrade from older SDK versions.
Connection & Session
How the Unity SDK connects your game to PlayServ and keeps the session alive — settings, what Connect does, connection states, automatic reconnects and keep-alive, token refresh, losing a session, and the errors you can get.
Live Records
Get your game's data live in Unity with PlayServData — subscribe to a set of records or to one record, what each update contains, the limits of a live query, when a subscription ends, stopping it, and what happens on a reconnect.
Reading Records
Read your game's data from Unity with PlayServData — C# types for your entities, loading a record by ID or natural key, querying with filters, sorting and pages, relations and parts, selected fields, singletons, and the errors you can get.
Server Events
Receive typed events from your servers in Unity with PlayServEvents — how delivery works, subscribing to an event type and to groups, who can send events, limits, and errors.
User Login
Sign players in from your Unity game — the anonymous player every game starts with, signing in with Apple, Google, Facebook, Epic or Steam, browser sign-in, linking and merging accounts, the player's profile, signing out, and what to do when sign-in fails.
Writing Records
Write your game's data from Unity with PlayServData — create records, save changes, handle version conflicts, create a record only once, delete one or many, write in bulk, retry safely, and what to do when a write is refused.