# Unity SDK

## Installation

### **Unity Package Manager**

From the Unity Package Manager window:

* Add Package from Git url

```html
https://github.com/Purchasely/Unity-Package.git
```

### API Key

From the Purchasely package window (Windows -> Purchasely):

* Set the API Key field to your Purchasely API Key

### iOS Integration

#### External Dependencies Manager

A third party external package is necessary to handle external dependencies with Cocoapods

* Got to *Assets* → *Import package* → *Custom package*
* Find and add ***external-dependency-manager-latest.unitypackage*** from <https://github.com/googlesamples/unity-jar-resolver>


---

# 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://purchasely.gitbook.io/purchasely/3.4/quick-start-1/sdk-installation/flutter-sdk-1.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.
