aframe-debug-cursor-component

A component to pretty-log cursor events.

Usage no npm install needed!

<script type="module">
  import aframeDebugCursorComponent from 'https://cdn.skypack.dev/aframe-debug-cursor-component';
</script>

README

aframe-debug-cursor-component

Version License

A component to pretty-log cursor events.

For A-Frame.

API

Property Description Default Value
enabled Whether to log. true

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-debug-cursor-component/dist/aframe-debug-cursor-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity id="mouseCursor" cursor="rayOrigin: mouse" debug-cursor></a-entity>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-debug-cursor-component

Then require and use.

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