aframe-debug-cursor-component
v1.0.0
Published
A component to pretty-log cursor events.
Downloads
27
Readme
aframe-debug-cursor-component
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');