Skip to main content

XR8.AFrame.xrlayersComponent()

XR8.AFrame.xrlayersComponent()

Description​

Creates an A-Frame component which can be registered with AFRAME.registerComponent(). This, however, generally won't need to be called directly. On 8th Wall Web script load, this component will be registered automatically if it is detected that A-Frame has loaded (i.e if window.AFRAME exists).

Parameters​

None

Example​

window.AFRAME.registerComponent('xrlayers', XR8.AFrame.xrlayersComponent())