aframe-log-component
In-VR console logs for A-Frame.
API
AFRAME.log (message, channel)
Provided global function to console.log
a message into VR.
AFRAME;AFRAME;
Properties
Property | Description | Default Value |
---|---|---|
channel | String to specify to only render logs that are sent with a specific channel. | '' |
filter | Plain-text string filter. (e.g., filter: bar would match log messages with bar in them. |
'' |
<a-log>
Primitive with a default plane geometry, black material, and light green text.
Logging Via Events
document;
Installation
Browser
Install and use by directly including the browser files:
My A-Frame Scene <!-- Or <a-log position="0 0 -4"></a-log>. -->
npm
Install via npm:
npm install aframe-log-component
Then require and use.
;;
Roadmap
- Allow listening and outputting from vanilla
console.log
s.