Forum Discussion
wynott
9 years agoExplorer
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()
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
- wynottExplorerOhhh 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?
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 months ago
- 6 years ago
- 2 years ago
- 2 years ago