Download SDK
Install the Unity package via UPM or from disk.
Git URL (Recommended)
Auto-updatesInstall directly from GitHub via Unity Package Manager. Gets updates automatically when you refresh.
- 1Open Unity Package Manager
- 2Click + → "Add package from git URL"
- 3Paste the URL below
- 4Click Add and wait
UPM Git URL
https://github.com/AzhariMabar/mabar-multiplayer-unity-sdk.gitAuto-updates from repo
No manual file management
Version pinning via #tag
Requires internet access
From Disk
OfflineClone the repo and install locally. Best for contributing or offline environments.
- 1Clone the unity-sdk repo
- 2In Package Manager, click + → "Add package from disk"
- 3Navigate to the cloned folder
- 4Select package.json → Open
Works offline
Easy to modify source
No network required
Manual updates needed
What's Included
Core SDK
Multiplayer class, session management, token lifecycle
Auth System
Anonymous guest login with Bearer token — no email or Firebase SDK needed
Turn System
SubmitTurn() with server-side validation — only current player can submit
Room Management
Create, join, leave rooms with limits, private rooms, and invite codes
Editor Tools
Setup wizard, settings inspector, validation UI
Samples
Turn-based game example with REST polling and room lifecycle
Requirements
| Unity Version | Unity 2021.3 LTS or later |
| Package Name | com.mabar.multiplayer |
| External Dependencies | None — pure C#, no extra packages |
| Firebase in Unity | Not required — handled server-side |
| WebGL Support | Supported via WebSocket |