aframe-stats-in-vr-component
v0.1.7
Published
stats-in-vr component for A-Frame.
Maintainers
Readme
aframe-stats-in-vr-component
stats-in-vr component for A-Frame.
The stats-in-vr component allows the A-Frame scene stats component to be visible in VR.
Example
<a-scene stats-in-vr></a-scene>Value
| Property | Description | Default Value | |----------------------|----------------------------------------------------|----------------------| | enabled | Whether enabled or not. | true | | position | Position of camera-locked stats panel. | '0 -0.35 -0.5' | | scale | Scale of camera-locked stats panel. | '0.5 0.5 1' |
Events
| Event Name | Description | | ---------- | ----------- |
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.4.0/aframe.min.js"></script>
<script src="https://rawgit.com/chenzlabs/stats-in-vr/master/dist/aframe-stats-in-vr-component.min.js"></script>
</head>
<body>
<a-scene stats-in-vr></a-scene>
</body>npm
Install via npm:
npm install aframe-stats-in-vr-componentThen register and use.
require('aframe');
require('aframe-stats-in-vr-component');