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

vr support ? #16

Open
klevron opened this issue Mar 7, 2021 · 3 comments
Open

vr support ? #16

klevron opened this issue Mar 7, 2021 · 3 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@klevron
Copy link
Member

klevron commented Mar 7, 2021

No description provided.

@klevron klevron added the enhancement New feature or request label Mar 20, 2021
@klevron
Copy link
Member Author

klevron commented Apr 28, 2021

@okydk
Copy link

okydk commented May 20, 2021

I've added the xr prop to the renderer but still get an error when starting a VR session. Any ideas?

VRButton.vue:55 Uncaught (in promise) TypeError: this.renderer.xr.setSession is not a function

@klevron
Copy link
Member Author

klevron commented May 20, 2021

Sorry I didn't have time to improve this and add example.

You should set a ref on the button :

<VRButton ref="vrbutton" />

And call init() in mounted() : this.$refs.vrbutton.init(this.$refs.renderer.renderer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants