# Install the SDK

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.

## Install from Unity Package Manager (Recommended)

#### **Install Using Open UPM (Recommended)**

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.**

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-1c8d59e85454c3cb7e209d7bf02496a08058dbce%2Fimage%20(227).png?alt=media" alt=""><figcaption></figcaption></figure>

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**.

1. Press `+` and select `Add package by name`
2. Paste `com.lootlocker.lootlockersdk` into name
3. Click Add

{% hint style="success" %}
The SDK is now installed in your project, and you are ready to [configure the SDK](https://docs.lootlocker.com/the-basics/unity-quick-start/configure-the-sdk) and [make your first API calls](https://docs.lootlocker.com/the-basics/unity-quick-start/make-your-first-api-call).
{% endhint %}

**Install Using Git**

{% hint style="warning" %}
Before you start, make sure you have Git installed on your computer.
{% endhint %}

Open the Unity editor and navigate to the Package Manager by clicking on `Window` and then `Package Manager`.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-b36a9ee36894f9452bac46faf05b1502a467e881%2Fplus.PNG?alt=media\&token=5d58b708-0544-4ee9-93f8-75f5ce294d7f)

Click on the `+` at the top of the Package Manager window and select `Add package from git URL`.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-6346057783a8aaed1f8345f87035a8e11586a958%2Fgitselct.PNG?alt=media\&token=17ad8c27-dee4-4143-8b03-25e650879f91)

Enter the URL below into the text box and click `Add`.

```
https://github.com/LootLocker/unity-sdk.git
```

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-e1a7131e0d78fc9fbbb37d6b875bd751e3766402%2Furlenter.PNG?alt=media\&token=b0d2e009-1f0a-4541-bb53-81beb4360f52)

{% hint style="success" %}
The SDK is now installed in your project, and you are ready to[ ](#configure-the-sdk)[configure the SDK](https://docs.lootlocker.com/the-basics/unity-quick-start/configure-the-sdk) and [make your first API calls](https://docs.lootlocker.com/the-basics/unity-quick-start/make-your-first-api-call).
{% endhint %}

## **Install using source code**

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](https://github.com/LootLocker/unity-sdk) page. When done, unzip the downloaded source code into your Unity project's Assets folder.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-a04ec17161f696eacacc96608e5a16ac246e5889%2F11.PNG?alt=media\&token=d0ff0d91-5be2-456e-8ec4-5d337f91a7ba)

{% hint style="success" %}
The SDK is now installed in your project, and you are ready to[ ](#configure-the-sdk)[configure the SDK](https://docs.lootlocker.com/the-basics/unity-quick-start/configure-the-sdk) and [make your first API calls](https://docs.lootlocker.com/the-basics/unity-quick-start/make-your-first-api-call).
{% endhint %}

## Install from Git Release

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](https://github.com/lootlocker/unity-sdk/releases/latest), 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.

{% hint style="success" %}
The SDK is now installed in your project, and you are ready to[ ](#configure-the-sdk)[configure the SDK](https://docs.lootlocker.com/the-basics/unity-quick-start/configure-the-sdk) and [make your first API calls](https://docs.lootlocker.com/the-basics/unity-quick-start/make-your-first-api-call).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lootlocker.com/the-basics/unity-quick-start/install-the-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
