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.07k stars 112 forks source link

No input is handled after following the guide. #391

Open genisbr opened 2 months ago

genisbr commented 2 months ago

Describe the bug No input from the controllers is being handled apparently when exporting the DemoScene with the webxr exporter.

To Reproduce Steps to reproduce the behavior:

  1. Create VR project in unity
  2. Load the 2 libraries using openUPM
  3. Open Scene Assets/Samples/XR Interaction Toolkit/2.4.3/Starter Assets/DemoScene.unity
  4. Execute the steps described on the video https://www.youtube.com/watch?v=4wQG8_pb3cs
  5. Build and run
  6. Click on VR button, so it loads the game on the headset or the webxr emulator
  7. Try to move with the joystick or grab any item with the buttons. It does nothing.

Expected behavior When pushing joystick up I expect the rig to move forward. When grabing I expected to grab the interactable samples. This is working fine by executing on the editor. Not when exported to browser. The ray turns to blue when pointing the object, however, buttons seems not to work.

Screenshots

Unity info (please complete the following information):

Desktop (please complete the following information):

Headset (please complete the following information):

Additional context Add any other context about the problem here.

De-Panther commented 2 months ago

Should work with the versions you mentioned. My guess is that you are missing something in your scene.

Try to build the WebXR Interactions XR Interaction Toolkit sample scene.