xrtrackingstatus
Description​
This event is emitted by xrweb
when XR8.XrController
is loaded and any time tracking status or reason changes.
xrtrackingstatus : { status, reason }
Property | Description |
---|---|
status | One of 'LIMITED' or 'NORMAL' . |
reason | One of 'INITIALIZING' or 'UNDEFINED' . |
Example​
const updateScene = ({detail}) => {
const {status, reason} = detail
if (status === 'NORMAL') {
// Show scene
}
}
this.el.sceneEl.addEventListener('xrtrackingstatus', updateScene)