aframe cursors Mouse cursor


Example

Note: For this example you need to add an external npm package.

If you want to use a mouse cursor of your computer, you need to add aframe-mouse-cursor-component. After if you must include the script using this code:

import 'aframe';
import 'aframe-mouse-cursor-component';

// or this 

require('aframe');
require('aframe-mouse-cursor-component');

And on your camera you need to add the mouse-cursor component.

<a-scene>
  <a-entity camera look-controls mouse-cursor>
</a-scene>