Touch controller inputs are not being detected in Unity
Inputs from my left and right touch controllers are not detected in Unity and only the hand presence, position and rotation are being detected. This would appear to only happen in Unity as in the demo games from the Oculus App (such as "First Contact" or "Google Earth VR") the button presses are detected.
In a new project, I attached the following script to my touch controllers but the debug messages were not printed:
I am using:
- Unity 2018.1.6f1
- Oculus Utilities v1.25.1
- OVRPlugin v1.25.0
- SDK v1.27.0
I only have OVRCameraRig (with OVRManager enabled) and LocalAvatar in the scene.
In a new project, I attached the following script to my touch controllers but the debug messages were not printed:
void Update () {
if (OVRInput.Get(OVRInput.RawButton.A))
{
Debug.Log("A pressed");
}
if (OVRInput.Get(OVRInput.RawButton.RIndexTrigger))
{
Debug.Log("Triggered pressed");
}
}I am using:
- Unity 2018.1.6f1
- Oculus Utilities v1.25.1
- OVRPlugin v1.25.0
- SDK v1.27.0
I only have OVRCameraRig (with OVRManager enabled) and LocalAvatar in the scene.
