aframe-stats-in-vr-component

0.1.7 • Public • Published

aframe-stats-in-vr-component

stats-in-vr component for A-Frame.

Screenshot 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-component

Then register and use.

require('aframe');
require('aframe-stats-in-vr-component');

Package Sidebar

Install

npm i aframe-stats-in-vr-component

Weekly Downloads

4

Version

0.1.7

License

MIT

Last publish

Collaborators

  • machenmusik