Forum Discussion
Anonymous
7 years agoTouch 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.
3 Replies
Replies have been turned off for this discussion
- AnonymousThank you! This workaround fixes the problem.
- Taylor_VRBuddhaHonored GuestUhhh, I am not seeing an answer to this question. Do you mind sharing what you did to fix this?
- pr00thmaticHonored Guestit's 2020 and this problem is still occurring... it's so annoying, I have to restart my pc and my oculus device, and then, sometimes, and only SOMETIMES, will the controllers work.... please solve this problem!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 1 year ago