> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/import-and-setup.md).

# Import and Setup (nightly)

Follow these steps to import and configure the Unity SDK.

{% hint style="info" %}
[**Download the nightly version Unity Package from this link.**](https://github.com/Conv-AI/Convai-Unity-Nightly-SDK/releases/latest)\
The package contains sample scenes to get started.
{% endhint %}

{% hint style="info" %}
[Download the WebGL version of the plugin, if you want to build for WebGL.](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/building-for-supported-platforms/building-for-webgl.md)
{% endhint %}

{% hint style="info" %}
The file structure belongs to the nightly version of the plugin downloaded from the documentation.
{% endhint %}

1. If you haven't already done so, download the SDK [here](https://drive.google.com/file/d/1dslrRcI6e02LvL-coupUoTFRlBDLjvMA).
2. Start the Unity Hub.
3. Verify that your project uses Unity 2022.3.0f1 LTS or later (check the Pre-Requisites section of the documentation).
4. Open your project.
5. Select **Assets > Import Package > Custom Package.**<br>

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FSORsSifE0bb2okyr0NqZ%2Fimage.png?alt=media&amp;token=0aaeed66-840c-4df0-91f0-0dcda7d71302" alt="" width="375"><figcaption></figcaption></figure>
6. In the file explorer, select the Convai Unity package.\
   The filename is similar to `ConvaiforUnity_vX.Y.Z.unitypackage`. X, Y, and Z are numbers containing the version information of the plugin.
7. Click **Import.**
8. When the Import begins, a prompt for using the new Unity Input System will appear. Press **Yes**.<br>

   <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FsJVttJS9HWaBQ1oSZe0Z%2Fimage.png?alt=media&amp;token=dea9e291-e26b-4550-b1db-2a18d5741a52" alt="" width="295"><figcaption></figcaption></figure>
9. The project will automatically restart. After the project is restarted, you need to import the package in the same way.
10. If you are using a Unity Version pre-2022.3.0f1, Disable Assembly Version Validation (use this troubleshooting page: [Disable Assembly Validation](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/troubleshooting-guide/enabled-assembly-validation.md))
11. Verify there were no compiler errors.

{% hint style="info" %}
If you face any errors, visit our [Troubleshooting Guide](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/troubleshooting-guide.md) page to resolve our most common issues.
{% endhint %}

## Package contents

After importing, by default, the Convai folder will be in your project. It should look something like this.

{% hint style="info" %}
The file structure belongs to the Core version of the plugin downloaded from the documentation.
{% endhint %}

<figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FZ4ioPav9aA9VgtiSf35O%2Fimage.png?alt=media&amp;token=68df6d09-2db5-47df-818c-70bcdd4d0e86" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/import-and-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
