Skip to main content
Playtolia ships as a Unity Package Manager (UPM) package with the name com.playtolia.sdk. The package wraps a cross-platform native library for Android and iOS, and exposes C# APIs. After the package resolves, it manages its native dependencies and platform settings for you. The SDK has three install methods. Select the method that fits your workflow:
  • Scoped registry (recommended). You add the Playtolia registry one time. The package then behaves like a built-in package. You can find it in the Package Manager and install it by name. The Package Manager also shows a one-click Update button for each new version.
  • Git URL. You get a tagged version directly from the distribution repository. This method needs no registry, but you must change the tag manually for each update. The Package Manager shows no Update button.
  • Tarball (.tgz). You download a self-contained archive one time. This method is good for machines without a network connection. It is also good when you want the exact bytes in your own storage.
All three methods install the same package into the Packages/ folder of your project. You can change to a different method later, and your game code stays the same.

Requirements

  • Unity 6000.0 or later (developed and tested with 6000.0.32f1)
  • iOS builds: Xcode and CocoaPods, with deployment target 13.0 or later
  • Android builds: Android SDK, with min SDK 24 (Android 7.0)
The core SDK does not need Firebase. Authentication, billing, social features, and all other features work without it. If you enable Push Notifications, you need the Firebase Unity SDK with Cloud Messaging. Push Notifications are off by default. For those steps, see Push Notifications.

Install with the Package Manager

Open the Package Manager from Window ▸ Package Manager. The + button in the top-left corner adds a package by name, Git URL, or tarball. You add scoped registries in Project Settings ▸ Package Manager. For more information about the window itself, see the Unity Package Manager window and Install a package guides.

Native dependencies

The package installs its own platform dependencies, and you do not add them manually:
  • Android. The External Dependency Manager for Unity (EDM4U) resolves the dependencies from Maven Central. The package ships an Editor/SharedAndroidDependencies.xml file that points to the matching com.playtolia.sdk:core-android version. EDM4U downloads that version at build time. EDM4U is a transitive requirement. If your project does not have EDM4U, install com.google.external-dependency-manager with Playtolia.
  • iOS. The core.framework binary ships inside the package. The included build post-processor embeds the framework into your Xcode project automatically.

Test the install

The package ships a Smoke Test sample. This sample runs a minimal initialization and a native round-trip. In the Package Manager, select Playtolia SDK ▸ Samples ▸ Smoke Test ▸ Import. Then open the imported scene or script. Make sure that the SDK loads and responds. CI runs the same test. If the test passes, your install is correct.

Updating

  • Scoped registry (the easiest method). The Package Manager shows a version list and a one-click Update button for each new version. You change no files manually.
Git URL packages and tarball packages show no Update button. That button is only for packages from a registry. Unity keeps the exact version that you installed in Packages/packages-lock.json. Thus you move to a new release yourself:
  • Git URL. Change the tag in Packages/manifest.json, for example #v1.4.0 to #v1.5.0. The URL changes, and Unity resolves the package again at the next window focus. Unity also updates the lock file. As an alternative, run + ▸ Add package from git URL… again with the new tag. You do not edit the lock file manually. A manual edit is necessary only when you track a moving branch and not a tag.
  • Tarball. Download the newer .tgz file. Delete the existing package from the Package Manager. Then add the new archive.
The package version always matches the version of the com.playtolia.sdk:core library. Package X.Y.Z always pairs with core X.Y.Z.

Next step

Getting Started

Add the Playtolia GameObject, set your Game ID, and build for iOS and Android.