Skip to content
🚧 Preview · Unity adapter APIs may still change. Pin an exact version.

Unity Overview

The IGP Unity SDK integrates game authorization, game-data synchronization, achievements, real-name verification, and anti-addiction into Unity games.

This page only covers Unity-specific details. For feature-level integration steps, start with the relevant page under “Use the SDK by feature”.

  • Game authorization: verify at launch that the current player legitimately owns the game on IGP, with authorized_online and authorized_offline results (protocol side: RequestGameAuthorization).
  • Desktop client connection: connect to the local IGP desktop client, retry when needed, start it on demand, and check available capabilities.
  • Game-data synchronization: after a match starts, exchange realtime and game data over RoomNode KCP/TCP reliable and optional UDP unreliable lanes.
  • 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.
  • GameKit / Leaderboard / Share: optional GameKit capabilities such as leaderboards and share.
  • Unity 2022.3 LTS or newer
  • Windows 10 or newer
  • IGP desktop client installed when Desktop capabilities are used
  • An appId assigned by IGP operations

Four public modules are available. Each module ships as both a Unity Package and an offline UPM tarball:

PackagePurposeApplicable projects
cn.indiegp.sdk.unityMain package with runtime and Editor toolingRequired for every integration
cn.indiegp.sdk.unity.multiplayerRoomNode Game data plane, Realtime, KCP/TCP/UDP, and optional Mirror integrationProjects that need game-data synchronization or Mirror
cn.indiegp.sdk.unity.complianceReal-name verification and anti-addiction helpersProjects that need state and event reads
cn.indiegp.sdk.unity.game-kitGameKit extension package, currently including Leaderboard and ShareProjects that need leaderboards, share, or other GameKit capabilities

The main package provides Achievements under Assets/IGP.UnitySDK/Samples. The Multiplayer package provides these samples under Assets/IGP.UnitySDK.Multiplayer/Samples:

  • RealtimeMessaging - realtime / state / RPC demo

Core checks the current Unity runtime platform in Desktop-then-Mobile order and constructs exactly one matching Host Session runtime. Attach failure does not switch platforms, and users do not configure one. Multiplayer does not inspect that choice. Its parameterless entry point requests a descriptor from the active Core provider, while its descriptor overload accepts one explicitly from the caller. Both create only the RoomNode Game data plane.

  1. Install the package: Unity Installation
  2. Complete the minimal validation flow for your target capability: Unity Quick Start
  3. Confirm the base flow: Startup and connection
  4. Continue with the target feature:
  5. Complete the relevant checks: Testing
  6. For Editor debugging of desktop capabilities: Unity Debugging
  7. For the latest version and download links: Release Notes
  • 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.
  • A failed Host descriptor request is a warning and does not fail Core initialization. IsRuntimeCreated remains false and the caller may retry.
  • The current verified release target remains Windows Desktop. The Mobile Host provider is not yet part of the public support matrix.

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.