De-Panther / unity-webxr-export

Develop and export WebXR experiences using Unity WebGL
https://de-panther.github.io/unity-webxr-export/
Apache License 2.0
1.06k stars 111 forks source link

XR Interaction Toolkit - UI raycast bug on quest3 browser #388

Closed meangpu closed 2 months ago

meangpu commented 2 months ago

Describe the bug In MetaQuest3 Browser, a UI ray interaction won't disappear when user no longer point at UI

To Reproduce Steps to reproduce the behavior:

  1. Go to https://de-panther.github.io/unity-webxr-export/XRInteractionToolkitDemo on MetaQues 3 web browser
  2. Point ray to UI object
  3. The ray won't disappear after out of pointing range

Expected behavior A ray disappear when user no longer pointing at ui element

Screenshots I have attach the video file from MetaQuest3 https://github.com/user-attachments/assets/ca6d7d37-a9e5-4260-be77-cd1f51dd56ea

Unity info

Headset

Additional context In my project I have interaction that turn the UI object off after user click ui button and the ray is still point at the empty canvas, so I try it again at the example demo and found the same problem, The bug won't happen when run in unity editor, but it will happen when running on Meta quest browser

De-Panther commented 2 months ago

In the WebXRCamera GameObject/Component there's a field named updateCameraTag set it to true.

Also, please use the bugs template. Usually I can't help without it.

meangpu commented 2 months ago

Thank you so much🙇. That fixed it