Skip to main content

XR8.AFrame.xrhandComponent()

XR8.AFrame.xrhandComponent()

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('xrhand', XR8.AFrame.xrhandComponent())