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.01k stars 106 forks source link

XR Interaction Toolkit - CameraFollower Camera view wrong on mobile AR #315

Closed De-Panther closed 7 months ago

De-Panther commented 7 months ago

Describe the bug When using XR Interaction Toolkit and switching to AR mode on mobile, the CameraFollower Camera stays with the same view as before. It affects interactions with Canvas UI objects.

To Reproduce Steps to reproduce the behavior:

  1. Go to the XR Interaction Toolkit Demo using a mobile phone.
  2. Click on enter AR.
  3. Try to interact with Canvas UI objects on different places of the screen.

Expected behavior Canvas UI objects should be interacted by the screen touch location.

Screenshots If applicable, add screenshots to help explain your problem.

Unity info (please complete the following information):

Smartphone (please complete the following information):

De-Panther commented 7 months ago

Solved by adding an option for eventsCamera in WebXRCamera.