# Step 1 - Import packages

## Package Dependencies

In case you use an older version of Unity you need to add the Newtonsoft Json package. You can install it by pasting following into your manifest.json file:

```json
"com.unity.nuget.newtonsoft-json": "3.2.1",
```

In the new Unity versions the Newtonsoft Json is build in to Unity. No need to install the package.

### Dependencies Installation:

1. **Git package repository link.** The easiest way to add the READYgg SDK into your project is to use PLAY package distribution. You need simply put the package git repository links into `manifest.json` file. See instructions below.

*Troubleshooting : if you have error messages in Unity saying that it cannot find the git repository, make sure you have Git installed on your machine. Unity Hub needs it to import packages from Github.*

{% tabs %}
{% tab title="Manifest.json" %}

## Steps:

1. Open `[project_dir]/Packages/manifest.json` file in your favorite text editor
2. Paste following lines:

```json
"network.theplay.unity.achievement": "https://github.com/PLAY-Network/PlayUnityAchievementPkg.git#0.16.0-dev.23",
"network.theplay.unity.analytics": "https://github.com/PLAY-Network/PlayUnityAnalyticsPkg.git#0.16.0-dev.23",
"network.theplay.unity.core": "https://github.com/PLAY-Network/PlayUnityCorePkg.git#0.16.0-dev.23",
"network.theplay.unity.currency": "https://github.com/PLAY-Network/PlayUnityCurrencyPkg.git#0.16.0-dev.23",
"network.theplay.unity.gameprogress": "https://github.com/PLAY-Network/PlayUnityGameProgressPkg.git#0.16.0-dev.23",
"network.theplay.unity.inventory": "https://github.com/PLAY-Network/PlayUnityInventoryPkg.git#0.16.0-dev.23",
"network.theplay.unity.leaderboard": "https://github.com/PLAY-Network/PlayUnityLeaderboardPkg.git#0.16.0-dev.23",
"network.theplay.unity.email": "https://github.com/PLAY-Network/PlayUnitySignInEmailPkg.git#0.16.0-dev.23",
"network.theplay.unity.guest": "https://github.com/PLAY-Network/PlayUnitySignInGuestPkg.git#0.16.0-dev.23",
"network.theplay.unity.store": "https://github.com/PLAY-Network/PlayUnityStorePkg.git#0.16.0-dev.23",
"network.theplay.unity.userprofile": "https://github.com/PLAY-Network/PlayUnityUserProfilePkg.git#0.16.0-dev.23",
"network.theplay.unity.virtualitems": "https://github.com/PLAY-Network/PlayUnityVirtualItemsPkg.git#0.16.0-dev.23",
```

{% hint style="info" %}
If you don't need some of the functionality, you can try to remove some modules.&#x20;

Partially removing some of the modules while keeping the others has not been thoroughly tested yet by the RGN team, if you encounter any issues please [contact us.](https://github.com/readyio/RGN-SDK-Example/issues/new/choose)
{% endhint %}

Afterwards switch to Unity and wait until the packages import finishes.
{% endtab %}

{% tab title="Unity package manager" %}

## Steps:

1. Open Unity project
2. Open Package Manager Window by clicking Unity menu Window->Package Manager![](/files/KFLKb33iKfmInKQdYxLS)
3. Click "+" button on left upper corner
4. Select "Add package from git URL..."
5. Paste the package links one by one:

```
https://github.com/PLAY-Network/PlayUnityAchievementPkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityAnalyticsPkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityCorePkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityCurrencyPkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityGameProgressPkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityInventoryPkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityLeaderboardPkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnitySignInEmailPkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnitySignInGuestPkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityStorePkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityUserProfilePkg.git#0.16.0-dev.23
https://github.com/PLAY-Network/PlayUnityVirtualItemsPkg.git#0.16.0-dev.23
```

{% endtab %}
{% endtabs %}


---

# 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://playnetwork.gitbook.io/play-sdk-documentation/sdk-integration-guides/getting-started/unity/step-1-import-packages.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.
