Skip to content

Unity Installation

This page only covers how to install the SDK into a Unity project. The main integration flow after installation is documented in Unity Quick Start.

  • Windows 10 or newer
  • Unity 2022.3 LTS or newer
  • A registered appId from IGP operations

This is the default distribution form during the current preview phase. After import, the SDK is placed under Assets/IGP.UnitySDK so Unity can compile it directly.

Pick the version you want to pin from Release Notes. For the current Unity SDK version 0.1.6, download:

  • cn.indiegp.sdk.unity-0.1.6.unitypackage - main package (required)
  • cn.indiegp.sdk.unity.mirror-transport-0.1.6.unitypackage - Mirror transport package (optional)
  • cn.indiegp.sdk.unity.compliance-0.1.6.unitypackage - real-name verification and anti-addiction module (optional)
  • cn.indiegp.sdk.unity.cloud-archive-0.1.4.unitypackage - Cloud Archive module (optional)

Verify the downloaded files against SHA256SUMS in the same release directory.

The main package depends on Unity’s official Newtonsoft JSON and UGUI packages. If your project does not already have them, open Window -> Package Manager in Unity Editor and add these packages with Add package by name...:

  • com.unity.nuget.newtonsoft-json
  • com.unity.ugui

You can also add them directly to dependencies in Packages/manifest.json:

"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.ugui": "1.0.0"

In Unity Editor:

  1. Choose Assets -> Import Package -> Custom Package...
  2. Select cn.indiegp.sdk.unity-0.1.6.unitypackage
  3. Import all files

If the project needs real-name verification and anti-addiction state, import cn.indiegp.sdk.unity.compliance-0.1.6.unitypackage the same way.

If the project needs Cloud Archive, import cn.indiegp.sdk.unity.cloud-archive-0.1.4.unitypackage the same way.

If the project already uses Mirror, import cn.indiegp.sdk.unity.mirror-transport-0.1.6.unitypackage the same way. Make sure Mirror itself is already installed before importing this optional package.

After opening the project in Unity Editor:

  1. Confirm Assets/IGP.UnitySDK exists
  2. If optional packages were imported, confirm their matching Assets/IGP.UnitySDK.* folder exists
  3. Confirm there are no IGP.UnitySDK compilation errors in the Console
  4. Confirm the version in Assets/IGP.UnitySDK/package.json matches the downloaded release

Once installation is confirmed, continue with Unity Quick Start.