Skip to main content

Install and Initialize

Requirements

  • Unity 2021.3.26f1 or later
  • Xcode 12.5 or later (for iOS builds)
  • Android Studio 4.2.2 or later (for Android builds)

Setup

To start using the Portkey Unity SDK, follow these steps:

  1. Create your Unity project.
  2. Open /Packages/manifest.json
  3. Add the following line to the dependencies section:
"nuget.moq": "1.0.0",
"com.unity.nuget.newtonsoft-json": "3.2.1",
  1. Download the SDK package from the releases section.
  2. Open your Unity project.
  3. In the Unity editor, navigate to Assets > Import Package > Custom Package.
  4. Select the SDK package file (e.g., portkey-unity-sdk-v1.0.6-alpha.unitypackage) and click Open.
  5. Unity will import the SDK assets and libraries into your project.
  6. Restart your Unity editor.