Get Started
Prerequisite to run the demo
Oculus Quest users please use OculusLaserDemo(Quest).unity demo scene. Other Oculus users please run OculusLaserDemo.unity demo.
Import Oculus Integration.
Find the LaserInputModule component on EventSystem GameObject, choose platform Oculus and click Setup Input Module. It might take a few seconds to set up. You can then choose the trigger key for the laser pointer.
Run the demo!
Setup From Scratch
Import Oculus Integration.
Add OVRCameraRig into your scene.
Drag UIKitPointer prefab in your scene.
Add EventSystem in your scene, remove all the components on the EventSystem and add LaserInputModule component.
On the LaserInputModule component, choose platform Oculus and click Setup Input Module. It might take a few seconds to set up. You can then choose the trigger key for the laser pointer.
Other Features
On UIKitPointer Prefab, you can tick Allow auto switch hand to change pointer when player clicks trigger on the other hand.
On the LaserInputModule component, set Pointer to eye will enable gaze control and set Pointer to hands will switch to laser control.