VR Button Feature not working

hi please help, my VR button isn’t working even if I properly set it up in the editor and installed the Webxr api emulator. For context, i followed the WebXR hello world project in playcanvas’ tutorials. it’s supposed to do a split screen for VR when the button is pressed but i can’t. heres my proj editor


On your Root entity, you have script component disabled so the vr.js script is never initialised

Enable the component and you should be fine.

I also recommend using Meta’s WebXR emulator, it has more features: Immersive Web Emulator - Chrome Web Store