0.1.8 • Published 5 years ago

@aframe-community/aframe-stats-in-vr-component v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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

PropertyDescriptionDefault Value
enabledWhether enabled or not.true
positionPosition of camera-locked stats panel.'0 -0.35 -0.5'
scaleScale of camera-locked stats panel.'0.5 0.5 1'

Events

Event NameDescription

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');