Install SDK
Import package
Import package from an archive
- Unzip the package.
- Open your Unity project or create a new one.
- In the Unity editor, go to
Assets > Import Package > Custom Package in the main menu and select the SDK.
Import package from git repository
- Open your Unity project or create a new one.
- In the main menu, click
Window > Package Manager . - Add a package as a dependence:
- Click the + icon and select
Add package from git URL . - Specify the git repository URL:
https://github.com/xsolla/store-unity-sdk.git?path=Assets/Xsolla
. - Click
Add and wait for the import to finish.
- Click the + icon and select
Set up compiler
We recommend you use the
You can use either
- Click
Edit > Project Settings in the main menu. - Go to the
Player > Other Settings > Configuration section. - Make sure that
Mono is selected in theScripting Backend field.
Resolve Android dependencies
For Android builds, the SDK uses function from native Android libraries.
To resolve dependencies and download the necessary libraries:
- Specify Android as the build platform:
- In the Unity editor, go to
File > Build Settings in the main menu. - In the
Platform panel, selectAndroid . - Click
Switch Platform .
- In the Unity editor, go to
- Start the dependency manager:
- In the Unity editor, go to
Assets > External Dependency Manager > Android Resolver > Resolve in the main menu. - Wait for the dependency manager to finish.
- In the Unity editor, go to
As a result, the JAR or AAR files of all the necessary Android libraries are downloaded to the Assets/Plugins/Android
folder.
Found a typo or other text error? Select the text and press Ctrl+Enter.