Forum Discussion
blee808
4 years agoHonored Guest
TrackedDeviceRaycaster Does Not Work with WebVR
When I run my WebVR app in the editor with my VR headset connected, TrackedDeviceRaycaster works and the UI responds to being pointed at by the controllers. When I run the WebVR build and switch to VR, the UI does not respond to being pointed at by the controllers.
I did some digging around and this is what I am observing. When running in the editor, the eventData passed to TrackedDeviceRaycaster.Raycast has pointerType = UIPointerType.Tracked, which causes the method to call PerformRaycast. When running as a WebVR build, pointerType = MouseOrPen, which causes PerformRaycast NOT to be called.
Furthermore, I believe InputSystemUIInputModule.GetPointerStateIndexFor sets the pointer type. It seems the bug is in there.
No RepliesBe the first to reply
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
- 3 years ago
- 2 years ago