@aframe-community/aframe-stats-in-vr-component

0.1.8 • 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/1.0.3/aframe.min.js"></script>
  <script src="https://raw.githubusercontent.com/aframe-community/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-community/aframe-stats-in-vr-component

Then register and use.

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

/@aframe-community/aframe-stats-in-vr-component/

    Package Sidebar

    Install

    npm i @aframe-community/aframe-stats-in-vr-component

    Weekly Downloads

    2

    Version

    0.1.8

    License

    MIT

    Unpacked Size

    98.8 kB

    Total Files

    20

    Last publish

    Collaborators

    • talekeep3d