Available SDKs
Unity is the only SDK today. There is no JavaScript or TypeScript package.
api.susaplay.com with
that token. The same code works in production and in the developer preview.
Installation
Add toPackages/manifest.json:
Modules
Every module hangs off the staticSusaPlaySDK class and is populated by Initialize().
Initialization
One call sets up everything. Identity is resolved by the shell during the handshake, so there is no separate identity step.Back to the partner’s app
When a partner opens your game inside their own app, the player needs a way back. Show a button for it only whenCanExitToHost is true, and call ExitToHost() when it is tapped:
CanExitToHost is false on SusaPlay itself, where there is no app to return to. Save first:
the partner may close the game as soon as it gets the request. Requires SDK 1.12.0 or later. In
the Editor Simulator, turn on Inside a partner’s app to test the button.
Version
The SDK reports its version to the shell during the handshake. Current release: 1.11.0. Some behaviour is version-gated —session_start analytics requires 1.3.0 or later, and the
Editor Simulator 1.9.0 or later. Pin a release tag (#v1.11.0) for reproducible installs. Rebuild
your game after upgrading the package; the version is compiled into the WebGL build.