Requirements
- Unity 2021.3 LTS or later
- .NET Standard 2.1
- Supported platforms: Windows, macOS, iOS, Android, WebGL
Installation
Unity Package Manager (Recommended)
- Open Window → Package Manager
- Click + → Add package from git URL
- Enter:
https://github.com/immutable/unity-immutable-sdk.git
Manual Installation
- Download from GitHub Releases
- Import the
.unitypackageinto your project
Quick Start
SDK Architecture
The Unity SDK consists of:| Component | Purpose |
|---|---|
Immutable.Passport | Authentication and wallet operations |
Immutable.Api | Generated API clients (Indexer, Orderbook) |
Immutable.Browser | WebView management for auth flows |
How Authentication Works
- SDK loads an invisible WebView containing the auth bridge
- User clicks login → system browser opens (Chrome Custom Tabs / ASWebAuthenticationSession)
- User authenticates with identity provider (Google, Apple, etc.)
- Browser redirects back to your app via deep link
- SDK receives tokens and establishes session
The in-app browser is used instead of a WebView for security. Google and Apple block WebView authentication to prevent credential theft.
Sample Project
The SDK includes samples demonstrating:- Login/logout flow
- Displaying user NFTs
- Sending transactions
- Marketplace integration