The client SDK for Gamend, the open-source game backend, as a Unity package: sign-in, every player API call, realtime channels and server hooks, live key-value rows and presence. Unity 2021.3 or newer, on every platform Unity builds for, WebGL included.
The guide: gamend.org/docs/unity-sdk.
In Unity, open Window > Package Manager, then + > Add package from git
URL..., and paste this repository's URL with the newest of its
tags in place of <version>:
https://github.com/appsinacup/gamend-unity.git#<version>
The Package Manager runs git for it. Without git, take gamend-unity-sdk.tgz
from Gamend's latest release
and add it with Add package from tarball....
using Gamend.Unity;
var client = GamendBehaviour.Instance.Client;
var signedIn = await client.Auth.LoginDevice(deviceId);
if (signedIn.Ok) client.Realtime.Connect();Runtime/Sdkis the C# SDK (assemblyGamend), the same code as theGamendNuGet package, generated from the server's API.Runtime/Unity(assemblyGamend.Unity) is what Unity adds:GamendBehaviour, which builds the client and polls it every frame, and transports overUnityWebRequestand, on WebGL, the browser's WebSocket.- The Quick Start sample, imported from the Package Manager, signs in, connects and quick-joins a lobby.
This package is generated from clients/unity_template on every change to Gamend, and appsinacup/gamend-unity is what CI writes from it: change it in Gamend, and report issues there.