You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

aframe-ui-widgets

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-ui-widgets

UI Widgets for A-Frame.

1.0.1
Source
npmnpm
Version published
Weekly downloads
14
100%
Maintainers
1
Weekly downloads
 
Created
Source

UI widgets for A-Frame.

Give it a whirl!

A-Frame UI Widgets

Works with HTC VIVE and Oculus touch in a WebVR enabled browser.

Installation

Include component script into your project along with A-Frame.

<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/caseyyee/aframe-ui-widgets/master/dist/ui-widgets.min.js"></script>
</head>

<a-scene>
  <!-- Adds hand controls -->
  <a-entity hand-controls="left"></a-entity>
  <a-entity hand-controls="right"></a-entity>

  <!-- Adds UI budget widget -->
  <a-entity ui-button></a-entity>
</a-scene>

Usage

Button

<a-entity ui-button></a-entity>
Events
EventDescription
buttondownEmitted when button is pushed down.
buttonupEmitted when button is released.
pressedEmitted when button has been has been pushed down and released.

Toggle switch

<a-entity ui-toggle></a-entity>
Properties
PropertyDescriptionDefault Value
valuesets toggle position.0

Events

EventDescription
changeEmitted when switch has been toggled.

Slider

<a-entity ui-slider></a-entity>
Properties
PropertyDescription
minsets minimum value
maxsets maximum value
valuesets value
Change
EventDescription
changeEmitted when slider has been moved.

Rotary Knob

<a-entity ui-rotary></a-entity>
Events
EventDescription
changeEmitted when rotary has been turned.

npm

Install via npm:

npm install aframe-ui-widgets

Then require and use.

require('aframe');
require('aframe-ui-widgets');

Keywords

aframe

FAQs

Package last updated on 17 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts