Installation
info
To gain access to the Xsolla SDK for Unity during Developer Preview phase, please fill out the form ↗ (https://xsolla.com/mobile-sdk).
There are multiple ways to install the Xsolla SDK for Unity plugin in Unity. All of them use the Unity's Package Manager.
Option 1: From a Unity package (.unitypackage)
- Choose Assets > Import Package > Custom Package. A file browser appears, prompting you to locate the .unitypackage file.
note
For more information on installing plugins from Unity packages, visit the official Unity documentation here ↗ (https://docs.unity3d.com/Manual/AssetPackagesImport.html).
Option 2: From a tarball
- Open your Unity project or create a new one.
- Go to Window > Package Manager.
- Add a package as a dependence:
- Click the ➕ icon and select Add package from tarball.
- Select the downloaded SDK package.
- Click Open and wait for the import to finish.
- If you don't have EDM4U (Google External Dependency Manager) installed, get the latest version (external-dependency-manager-latest.unitypackage) into the project from GitHub ↗ (https://github.com/googlesamples/unity-jar-resolver).
note
For more information on installing plugins from tarballs, visit the official Unity documentation here ↗ (https://docs.unity3d.com/Manual/upm-ui-tarball.html).
Where to find the latest version?
tip
For the latest version of Xsolla SDK for Unity, consult with your Account Manager.