nartc / angular-three

🧊 THREE.js integration for Angular 🧊
https://angular-three.netlify.app/
MIT License
306 stars 26 forks source link

[V5 beta] Can't bind to 'vr' since it isn't a known property of 'ngt-canvas'. #93

Closed IRobot1 closed 2 years ago

IRobot1 commented 2 years ago
<ngt-canvas [vr]="vr"

Is there a new way to enable vr in the canvas?

nartc commented 2 years ago

I'm writing up some docs for v5 beta right now. vr has been renamed to xr

IRobot1 commented 2 years ago

Hmm. I tried changing it. Error now changes to

Can't bind to 'xr' since it isn't a known property of 'ngt-canvas'.

nartc commented 2 years ago

Well, xr is a tracking state but v5 should automatically switch to use WebXR when a VR session is requested. Can you try removing the xr input altogether?

IRobot1 commented 2 years ago

Yes, that works.