Forum Discussion
continuities
6 years agoHonored Guest
Cannot interact with UI components
I'm trying to implement UI using a LaserPointer and some Unity UI components (Dropdowns and Sliders).
I've got the scene set up with an OVRCameraRig and the OVRInputModule replacing StandaloneInput on the EventSystem.
I've added OVRPhysicsRaycaster to the OVRCameraRig and OVRRaycaster to the Canvas that my UI components live inside.
I set the Ray Transform of OVRInputModule to RightHandAnchor, and set Cursor to OVRCameraRig (which is where the LaserPointer component lives).
This has gotten me to the point where I see the laser pointer in the scene and, when I hover over UI components, they become selected.
Unfortunately, I can't interact with them. None of the buttons on the touch controllers trigger the dropdowns or grab the sliders. I know that the ray is hitting them, since they become selected when hovered. Any ideas on why they might not be interactable?
Thanks!
I've got the scene set up with an OVRCameraRig and the OVRInputModule replacing StandaloneInput on the EventSystem.
I've added OVRPhysicsRaycaster to the OVRCameraRig and OVRRaycaster to the Canvas that my UI components live inside.
I set the Ray Transform of OVRInputModule to RightHandAnchor, and set Cursor to OVRCameraRig (which is where the LaserPointer component lives).
This has gotten me to the point where I see the laser pointer in the scene and, when I hover over UI components, they become selected.
Unfortunately, I can't interact with them. None of the buttons on the touch controllers trigger the dropdowns or grab the sliders. I know that the ray is hitting them, since they become selected when hovered. Any ideas on why they might not be interactable?
Thanks!
1 Reply
Replies have been turned off for this discussion
- continuitiesHonored GuestSo I figured out what the causing the problem!
I had another component in the scene using the OVRInput class to read input values, and that seems to interfere with OVRInputManager's ability to detect clicks. That's pretty annoying, but at least I know now! Was this in the documentation somewhere that I should have noticed? It burned a whole day =(
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
- 3 months ago