Skip to main content

Available SDKs

Unity is the only SDK today. There is no JavaScript or TypeScript package.
Games run as WebGL builds inside the SusaPlay shell. The SDK communicates with the platform through that shell rather than calling the API directly, so the same code works in production and in the developer preview.

Installation

Add to Packages/manifest.json:
Or in Unity Package Manager → Add package from git URL:
Then run susaplay → Create Config Asset and fill in your game key.

Modules

Every module hangs off the static SusaPlaySDK 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.
Await Initialize() before touching any module. The properties are null until it completes, and a second call while the first is still running is ignored.
If the shell does not respond within 15 seconds, initialization logs an error and gives up. Guard against null modules if your game can run standalone.

Version

The SDK reports its version to the shell during the handshake. Current release: 1.3.0. Some behaviour is version-gated — session_start analytics requires 1.3.0 or later. Rebuild your game after upgrading the package; the version is compiled into the WebGL build.