Search code examples
unity-game-engineoculus

Unity5 OVRInput not working


I'm programming in Unity 5.5 and I have all of the up-to-date Oculus utilities needed, but Unity no longer recognizes any inputs from the touch controllers. In the past this has worked fine and I can still get the position and rotation of the controllers but now, if I were to do anything like

void Update()
{
    if(OVRInput.Get(OVRInput.RawButton.A)
        Debug.Log("A button pressed");
}

Nothing will happen. I've tried every sort of OVRInput there is.

Is anyone else having the same issue or is there something I am missing??


Solution

  • You should ensure you have an OVRManager component in your scene, it is a singleton. Attach it to your character gameObject and inputs will work just fine.