Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
blee808's avatar
blee808
Honored Guest
4 years ago

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