# Setup

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> Installation <a href="#installation" id="installation"></a>

* Open `Window`  →  `Package Management`  →  `Package Manager`
* Click `plus` button and select `Install package from git URL`
* Insert `https://github.com/playgama/bridge-unity.git`
* Open `Playgama`  →  `Bridge Setup` window and click `Add` in the `Add Bridge WebGL Template` section

{% hint style="success" %}
You can use the example project to better understand the SDK integration process

<https://github.com/playgama/bridge-unity-examples>
{% endhint %}

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> Config <a href="#config" id="config"></a>

In the `WebGLTemplates/Bridge/playgama-bridge-config.json` config file you can set up various identifiers and in-game purchases.

You can see an explanation of the file structure here: [playgama-bridge-config](https://wiki.playgama.com/playgama/sdk/playgama-bridge-config "mention").

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> **Initialization and Build** <a href="#initialization-and-build" id="initialization-and-build"></a>

{% hint style="info" %}
When you build the project, please enable "Decompression Fallback" in the Unity build settings.
{% endhint %}

Once the game is loaded, the plugin is already initialized. No additional actions are required.

To ensure the plugin functions correctly, select the appropriate WebGL Template during the build process.

<figure><img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2FiTu62lwZ2OpI3mis9P1n%2FScreenshot%202025-04-17%20at%201.54.32%E2%80%AFPM.png?alt=media&#x26;token=fa68dc3c-4315-49b1-9a78-e94114104daa" alt=""><figcaption></figcaption></figure>


---

# 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://wiki.playgama.com/playgama/sdk/engines/unity/setup.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.
