Forum Discussion
Anonymous
9 years agoNot applicable
[SOLVED] Click events fired twice on Gear VR
Hello, I am having a strange problem since the latest Oculus/GearVR update (not sure which one it was :blush: ). When I click on a button in Editor it works as expected, same when running the app in d...
Anonymous
9 years agoNot applicable
@vrdaveb
I'm using OVRInputModule only. I added the following code to print active device to the console:
I made another empty project (Unity 5.5.0f3), imported Utilities 1.10 package and copied OVRHarness, OVRInspector and Parse folders from Oculus Sample Framework (1.5.1). I made an empty scene with OVRCameraRig, GazePointerRing and world space Canvas (with Graphic Raycaster disabled and OVRRaycaster enabled). EventSystem's standalone input module is disabled and OVRInputModule is enabled).
I set up player settings for VR and clicks worked as they should. I noticed that I forgot to set Android API level (it was set to 9 - Android 2.3.1). As soon as I changed API level, clicks started to get called twice. I tried to change API back to 9 and it didn't work anymore. Then I cleared data and cache on the phone and installed the app again. Clicks started to work again. But I can't replicate this again. It worked only once, no matter how many times I change API or delete data/cache. Uninstalling and reinstalling also doesn't help.
I updated Android SDK's, tools, platform tools, etc... It didn't help.
I'm using OVRInputModule only. I added the following code to print active device to the console:
Debug.Log(OVRInput.GetActiveController().ToString()); First click prints None and immedeatelly after it prints Touchpad. Every click after that prints Touchpad twice. Checking if there are multiple copies of components mentioned above was the first thing I did. I made another empty project (Unity 5.5.0f3), imported Utilities 1.10 package and copied OVRHarness, OVRInspector and Parse folders from Oculus Sample Framework (1.5.1). I made an empty scene with OVRCameraRig, GazePointerRing and world space Canvas (with Graphic Raycaster disabled and OVRRaycaster enabled). EventSystem's standalone input module is disabled and OVRInputModule is enabled).
I set up player settings for VR and clicks worked as they should. I noticed that I forgot to set Android API level (it was set to 9 - Android 2.3.1). As soon as I changed API level, clicks started to get called twice. I tried to change API back to 9 and it didn't work anymore. Then I cleared data and cache on the phone and installed the app again. Clicks started to work again. But I can't replicate this again. It worked only once, no matter how many times I change API or delete data/cache. Uninstalling and reinstalling also doesn't help.
I updated Android SDK's, tools, platform tools, etc... It didn't help.
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
- 1 month ago
- 1 year ago