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

stats-in-vr component for A-Frame.

Usage no npm install needed!

<script type="module">
  import aframeCommunityAframeStatsInVrComponent from 'https://cdn.skypack.dev/@aframe-community/aframe-stats-in-vr-component';
</script>

README

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