Prototype: Guiding an object using touch controllers
Set-Up (Unity for VR)
- Installing latest version of unity
- Including android support as well as the android SDK and open JDK
- Setting up for VR
- Resource: https://www.youtube.com/watch?v=yxMzAw2Sg5w
- XR Manager for Oculus
- Install and import oculus integration from asset store
- Install openVR and XR Legacy input packages
- Change Build setting so that it is set up for android and Texture Compression is set to “ASTC.”
- In player settings, change the company and product name
- In other settings, change the minimum API level to “Lollipop” (it was suggested to use 4.4 “KitKat” but this was not available - outdated).
Now Unity is prepared for building for Virtual Reality devices.
Touch Controllers Set-Up
- In Assets > Oculus > VR > Pre-fabs, select OVRPlayerController and drag it into the hierarchy.
- Under OVRPlayerController > OVRCameraRig > TrackingSpace > LeftHandAnchor, drag in the OVRControllerPrefab from the same folder in assets.
- Repeat this step for the RightHandAnchor.