Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Oculus raycasting with Touch Controller to GUI

Discussion in 'AR/VR (XR) Discussion' started by leeprobert, May 2, 2018.

  1. leeprobert

    leeprobert

    Joined:
    Feb 12, 2015
    Posts:
    40
    I'm struggling to find a way to get a 'laser pointer' from my Oculus Touch Controller to interact with the World Space GUI in my scene. I've followed the old instructions that do this for gaze, and have attempted to translate this over to the hand tracker, but I can't get the raycast to interact with the buttons. Are there any decent tutorials on doing this?
     
    nivek2696 likes this.
  2. leeprobert

    leeprobert

    Joined:
    Feb 12, 2015
    Posts:
    40
    Following up on this: the Sample Frameworks has some great examples, and there's also an article on Oculus's dev pages that extends the OVRInput script to include a LineRenderer. You have to fiddle with the code to also include the Touch controllers (it is written for GearVR/Oculus Go).
     
    lostjam and muhasin like this.