There was an error while loading. Please reload this page.
To use XR.js in your project, I reccomend you start by cloning this repository and trying the examples.
It is installable via npm, though I am not certain importing the library would correctly at this stage.
Clone the (latest) repository to a new folder named XR
XR
git clone --depth 1 https://github.com/XRscript/XR.js XR
or intall via npm npm install @xrscript/XR.js
npm install @xrscript/XR.js
It import XR.js into HTML, add this script to your page
Make sure to use type="module"
type="module"
<script type="module"> import * as XR from '/XR.js'; var myReality = new XR.Reality(); </script>