Unity Overview
The IGP Unity SDK integrates game authorization, multiplayer rooms, realtime messaging, achievements, and real-name verification and anti-addiction into Unity games. Integration only needs an appId; the SDK handles communication with the IGP desktop client and backend services.
This page only covers Unity-specific details. For feature-level integration steps, start with the relevant page under “Use the SDK by feature”.
Feature list
Section titled “Feature list”- Game authorization: verify at launch that the current player legitimately owns the game on IGP, with
authorized_onlineandauthorized_offlineresults (protocol side:RequestGameAuthorization). - Desktop client connection: connect to the local IGP desktop client, retry when needed, start it on demand, and check available capabilities.
- Rooms: create, join, and leave rooms with ready, start, and finish lifecycle events, with symmetric host and guest flows.
- Realtime messaging: reliable room messaging, KCP data-plane messaging, and automatic fragmentation for large payloads.
- State and RPC: synchronize player state across endpoints and invoke logic on other players in the room.
- Achievements: unlock achievements and report progress.
- Real-name verification and anti-addiction module: optional status events, age range reads, and remaining play-time reads.
- Mirror transport: optional transport package for Unity projects that already use Mirror.
Prerequisites
Section titled “Prerequisites”- Unity
2022.3 LTSor newer - Windows 10 or newer
- IGP desktop client installed locally
- An
appIdassigned by IGP operations
Package layout
Section titled “Package layout”Install with Unity import packages. Three packages are available depending on project needs:
| Package | Purpose | Applicable projects |
|---|---|---|
cn.indiegp.sdk.unity | Main package with runtime and Editor tooling | Required for every integration |
cn.indiegp.sdk.unity.mirror-transport | Mirror transport adapter | Only projects that already use Mirror |
cn.indiegp.sdk.unity.compliance | Real-name verification and anti-addiction helpers | Projects that need state and event reads |
The main package also ships with these samples under Assets/IGP.UnitySDK/Samples after import:
StarterDemo- minimum integration exampleRoomLifecycle- room lifecycle walkthroughRealtimeMessaging- realtime / state / RPC demoAchievements- achievement unlock and progress demoHostedPlayground- combined manual integration playground
Start integrating
Section titled “Start integrating”- Install the package: Unity Installation
- Complete the minimal validation flow for your target capability: Unity Quick Start
- Confirm the base flow: Startup and connection
- Continue with the target feature:
- Complete the relevant checks: Testing
- For Editor debugging of desktop capabilities or the complete room flow: Unity Debugging
- For the latest version and download links: Release Notes
Current limitations
Section titled “Current limitations”- Preview phase: APIs may still contain incompatible changes, so pin an exact version.
- Windows 10 and later only. Other operating systems are out of scope.
- Multiplayer room flows depend on the local IGP desktop client launching the game. Pure headless environments such as CI or cloud builds are not the target use case for the room path right now.
Trademark and copyright notice
Section titled “Trademark and copyright notice”This page and the IGP Unity SDK are not sponsored by or affiliated with Unity Technologies or its affiliates, and do not imply endorsement by Unity Technologies or its affiliates.
Unity, Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere. Use of Unity trademarks, logos, and brand assets should follow the Unity trademark guidelines.