# Install Sample Project

## Setting Up Your Unity Project with the MOTAR SDK

### Prerequisites

* Unity 2022.3+ (SDK supports Unity 2021.3 and up)
* Unity Editor installed
* Basic familiarity with Unity’s Package Manager and Project Settings

{% hint style="warning" %}
If your project uses an older version of Unity and cannot be updated, please reach out for assistance.
{% endhint %}

***

### Installing the MOTAR SDK via Scoped Registry

* Open **Unity Editor** and navigate to **Edit > Project Settings**.
* In the **Project Settings** window, select **Package Manager**.
* Add a new **Scoped Registry** with the following details:
  * **Name**: MOTAR
  * **URL**: `https://registry.hub.motar.com`
  * **Scope(s)**: `com.motar`
* Click **Save** and close **Project Settings**.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdSpLVVA7LDM97-avf9kvrPC7TSkYmHAbqOyaoZksx5xNZhJTe7lWN5xDF8hYVxrQrzQYU6cph7L-bzEjSJ_8ihcvT9dWnXmlcCool5JwQ1tcTXWhjd6z883expqHfr7FXfWOdyOQ?key=qX-PfMadnNws3SscZCg7guPi" alt=""><figcaption></figcaption></figure>

* Open **Package Manager** (`Window > Package Manager`).
* Change the dropdown from **Packages: In Project** to **My Registries** (Unity might take a minute to detect the registry).
* Under **Dynepic**, select **MOTAR SDK** and click **Install**.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeIwVszdsUcGR8YQNSGXgmOLyMc9HyavSGFUTCK-Jlv6fvdH4VBbjMobn9ZKRWo2cv8FWruJtOkc-jO3UdmV_D1If4qpkH7pXS_Z3kCy1KYj7wpeMnnfqwZywiY76fak_8rqYOOTw?key=qX-PfMadnNws3SscZCg7guPi" alt=""><figcaption></figcaption></figure>

* Click **Yes** to enable new input system backends (required for UI interaction).&#x20;

{% hint style="danger" %}
Unity will restart.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXenCmXdNMxDyBvfd4KzSW_TNPGzevTjR3oUppHdTNbg_TG4LHknAMGFu4mATyhBjdoqvjckbtadjrErQ-5dS6NClsNUzX3v0n70Ya6NImMoKdr5d-vyFDDzX9bi4Ofy3Qb54qW-8w?key=qX-PfMadnNws3SscZCg7guPi" alt=""><figcaption></figcaption></figure>

***

### Importing Samples

<figure><img src="/files/NYbyQ9SMs77s6SXPfkV1" alt=""><figcaption></figcaption></figure>

#### Device Sync Sample

1. Open **Package Manager** and select **MOTAR SDK** under **Dynepic**.
2. Click on **Samples**.
3. Find **Device Sync** and click **Import**.
4. Navigate to `Assets/Samples/MOTAR SDK/<current version>/Device Sync/Scenes`.
5. Open the **MOTARDeviceSyncAndAuthentication** scene.
6. When prompted, click **Import TMP Essentials**.

#### Avatar Sample

1. Open **Package Manager** and select **MOTAR SDK** under **Dynepic**.
2. Click on **Samples**.
3. Find **Avatar** and click **Import**.

#### Learn to Fly UFO (URP Only) Sample

1. Open **Package Manager** and select **MOTAR SDK** under **Dynepic**.
2. Click on **Samples**.
3. Find **Learn to Fly UFO (URP Only)** and click **Import**.

***

You are now ready to begin setting up the Unity scene(s).&#x20;

Continue to: [Broken mention](broken://pages/85br9IvaUswcek4ifG0f)


---

# 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.motar.com/welcome/motar-tutorials/learn-to-fly-ufo-xr-app-build-tutorial/install-sample-project.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.
