> For the complete documentation index, see [llms.txt](https://superstatic.gitbook.io/curvedui-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://superstatic.gitbook.io/curvedui-docs/getting-started/setup-for-unity-xr-sdk.md).

# Setup for Unity XR SDK

## 1. Install Unity XR SDK in your project

* Install Unity
* Import XR Plugin Management package.
* Install your VR hardware SDK in Player Preferences > Plugin Management
* Import New Input System package
* Make sure New Input System backends are enabled in Player Settings > Configuration. Set them to 'Input System' or 'Both'
* Import XR Interaction Toolkit package
* Import XR Interaction Toolkit **Sample Assets** package

## 2. Install and configure CurvedUI

{% hint style="info" %}
You can also use the “Unity XR Starter” demo scene. It has been set up before for you.
{% endhint %}

1. Import newest CurvedUI package.
2. Add **XR Origin** prefab from XR Interaction Toolkit Starter Assets to your scene.
   1. Alternatively, any custom rig with XR Input Manager will work.
3. Add CurvedUISettings component to your canvas.
4. Select UNITY\_XR control method. Enable it, if needed.
5. In the CurvedUISettings, assign:
   1. **Left and Right Controllers** reference&#x73;**.**&#x20;
   2. **Left and Right UI Press Actions.**&#x20;
      1. By default, these are called *XRI Right Interaction / UI Press* and *XRI Left Interaction / UI Press* respectively
6. (Optional) Drop the CurvedUILaserPrefab on the scene.

{% hint style="info" %}
CurvedUI will attempt to find all references by itself, if they are present on the scene.
{% endhint %}
