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
You can also use the “Unity XR Starter” demo scene. It has been set up before for you.
Import newest CurvedUI package.
Add XR Origin prefab from XR Interaction Toolkit Starter Assets to your scene.
Alternatively, any custom rig with XR Input Manager will work.
Add CurvedUISettings component to your canvas.
Select UNITY_XR control method. Enable it, if needed.
In the CurvedUISettings, assign:
Left and Right Controllers references.
Left and Right UI Press Actions.
By default, these are called XRI Right Interaction / UI Press and XRI Left Interaction / UI Press respectively
(Optional) Drop the CurvedUILaserPrefab on the scene.
CurvedUI will attempt to find all references by itself, if they are present on the scene.
Last updated