aframe cursors Mouse cursor


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 


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

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