Install the SDK
Installing and configuring the LootLocker SDK in your Unity project only takes a few minutes.
Last updated
Installing and configuring the LootLocker SDK in your Unity project only takes a few minutes.
Last updated
Installing the LootLocker SDK in your project is very straightforward and flexible with different ways to set it up depending on your personal preferences.
The Unity SDK can be installed through the Unity Package Manager or by importing the package into your Unity project. We recommend using the Unity Package Manager.
The best way to get the LootLocker SDK is through the Open UPM registry. This way you will be able to update the SDK inside the Unity Package Manager whenever we release new features or fixes.
Open the Unity Editor and navigate to Edit/Project Settings/Package Manager.
Add a new Scoped Registry (or edit the existing OpenUPM entry): Name=package.openupm.com,
URL=https://package.openupm.com
and Scope(s)=com.lootlocker.lootlockersdk
and click Apply.
What you just did is add the ability for Unity Package Manager to read packages from the extensive OpenUPM registry and then specifically the scope com.lootlocker.lootlockersdk
which is our Unity SDK.
Now, to actually add the SDK to your project, go to Window/Package Manager.
Press +
and select Add package by name
Paste com.lootlocker.lootlockersdk
into name
Click Add
The SDK is now installed in your project, and you are ready to configure the SDK and make your first API calls.
Install Using Git
Before you start, make sure you have Git installed on your computer.
Open the Unity editor and navigate to the Package Manager by clicking on Window
and then Package Manager
.
Click on the +
at the top of the Package Manager window and select Add package from git URL
.
Enter the URL below into the text box and click Add
.
The SDK is now installed in your project, and you are ready to configure the SDK and make your first API calls.
If you do not have git installed on your computer you can install the SDK by downloading the entire repository and copying it into the packages folder of your project.
To download the entire repo, select Code
and Download Zip
from the LootLocker Unity SDK GitHub page. When done, unzip the downloaded source code into your Unity project's Assets folder.
The SDK is now installed in your project, and you are ready to configure the SDK and make your first API calls.
For your convenience we package our releases into .unitypackage
files that you can drag and drop into your Unity project. Go to our latest release, scroll down and find the .unitypackage
file corresponding to your Unity version, download it, and drag it into your Unity project.
If you are importing the package into an already existing project, make sure you untick the project settings so your settings are not overwritten.
Click Import to complete the SDK installation.
The SDK is now installed in your project, and you are ready to configure the SDK and make your first API calls.