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.
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)
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.
- Scoped registry (recommended)
- Git URL
- Tarball (.tgz)
A scoped registry
tells Unity where to find the Playtolia packages. You add the registry one time. You then
get every future version and the Package Manager Update button.Add the registry from Project Settings (no file changes). Open Edit ▸ Project Settings
▸ Package Manager. Expand Scoped Registries. Then do these steps:Then install the package from Window ▸ Package Manager ▸ My Registries ▸ Playtolia ▸
Playtolia SDK ▸ Install. As an alternative, use
- Click the
+button to add a new registry. - Type these values in the fields:
- Name:
Playtolia - URL:
https://dist.playtolia.com/unity-sdk - Scope(s):
com.playtolia
- Name:
- Click Save.
+ ▸ Add package by name… with
com.playtolia.sdk.Prefer to edit manifest.json directly?
Prefer to edit manifest.json directly?
Add the same registry and the package to
Packages/manifest.json. If the
scopedRegistries array is not there, create it: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.xmlfile that points to the matchingcom.playtolia.sdk:core-androidversion. EDM4U downloads that version at build time. EDM4U is a transitive requirement. If your project does not have EDM4U, installcom.google.external-dependency-managerwith Playtolia. - iOS. The
core.frameworkbinary 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.
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.0to#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
.tgzfile. Delete the existing package from the Package Manager. Then add the new archive.
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.