aframe-debug-cursor-component

1.0.0 • Public • Published

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');

Dependents (0)

Package Sidebar

Install

npm i aframe-debug-cursor-component

Weekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

10.7 kB

Total Files

8

Last publish

Collaborators

  • dmarcos
  • ngokevin