Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.xr.input add event does not fire in pc.XRTYPE_AR (immersive-ar) mode #6126

Closed
josephrocca opened this issue Mar 7, 2024 · 2 comments
Closed

Comments

@josephrocca
Copy link

Description

Changing instances of pc.XRTYPE_VR to pc.XRTYPE_AR on this example: https://playcanvas.github.io/#/xr/vr-hands cause hands to no longer be detected.

Steps to Reproduce

  1. Visit https://playcanvas.github.io/#/xr/vr-hands
  2. Ctrl+F for XRTYPE_VR (there are two instances)
  3. Change them to XRTYPE_AR and click the reload button
  4. Observe that the hands are no longer there - the app.xr.input.on('add', ...) handler does not fire.
@Maksims
Copy link
Contributor

Maksims commented Mar 8, 2024

Thank you for report. This has been fixed recently in this PR: #6069
It will be released to everyone with next engine release likely.

@josephrocca
Copy link
Author

Nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants