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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

OVRInput can't find Rift S Controllers

Discussion in 'VR' started by jc_crash, Mar 17, 2020.

  1. jc_crash

    jc_crash

    Joined:
    Jul 30, 2019
    Posts:
    21
    Hi,

    I have just acquired an Oculus Rift S and am trying to integrate into Unity. I have the working such that I can see my scene through the HMD and I can see the controllers. However I can't seem to get any input from the controllers. I tried calling:

    Code (CSharp):
    1. OVRInput.GetConnectedControllers()
    and it returns 'None'. The Oculus runtime is obviously working because I am using the HMD and am seeing the controllers moving etc, just can't get input. I am also calling OVRInput.Update() in the update function to be safe and it also didn't work.

    Any ideas?

    Thanks!
     
  2. jc_crash

    jc_crash

    Joined:
    Jul 30, 2019
    Posts:
    21
    In case anybody else has this same issue, the problem appears to be the version of Unity. I made a separate dummy project importing the necessities and created a blank script in the same version (2019.1.12f1) and OVRInput wasn't working.

    I made the same dummy project from scratch in 2018.4.13f1 and it worked. So I upgraded my original project to 2019.3.5f1 and it works!

    Fix: Do not use v2019.1.12f1

    Note: GetConnectedControllers() still returns None, but input works (i.e. OVRInput.Get(...)).