Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
wynott's avatar
wynott
Explorer
9 years ago

VRInput.GetDown only working intermittently

This only works... sometimes. I can't figure out any pattern.

It will work fine, and then I move the player and... nothing. And If I wait a while or move again and get lucky... It starts working again. I'm new to this and must be doing something obvious wrong.

 void Update()
    {
        if (OVRInput.GetDown(OVRInput.Button.One))
        {

            Debug.Log("Button Pushed!");

            AudioSource audio = GetComponent<AudioSource>();
            audio.Play();

        }
    }


Unity v5.5.0f3, Oculus Utilities v1.11.0, OVRPlugin v1.10.0, SDK v1.11.0.
UnityEngine.Debug:Log(Object)
OVRManager:Awake() (at Assets/OVR/Scripts/OVRManager.cs:570)

1 Reply

Replies have been turned off for this discussion
  • Ohhh just figured out that if the right controller isn't present it thinks button 3 is button 1. So... I guess you have to check what controllers are present manually? Really?