New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

aframe-entity-generator-component

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-entity-generator-component

Generate a number of entities in A-Frame given a mixin

latest
Source
npmnpm
Version
3.0.2
Version published
Weekly downloads
47
-14.55%
Maintainers
1
Weekly downloads
 
Created
Source

aframe-entity-generator-component

An entity generator component for A-Frame. Given a mixin, generates a number of entities as children. Pairs well with Randomizer Components for a large number of entities with random elements.

Properties

PropertyDescriptionDefault Value
mixinMixin ID that will be applied to generated entities.''
numNumber of entities to generate.10

Usage

Browser Installation

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-entity-generator-component@^3.0.0/dist/aframe-entity-generator-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-assets>
      <a-mixin id="red" material="color: red"></a-mixin>
      <a-mixin id="candle" geometry="primitive: sphere" light></a-mixin>
    </a-assets>

    <a-entity entity-generator="mixin: red candle"></a-entity>
  </a-scene>
</body>

NPM Installation

Install via NPM:

npm install aframe-entity-generator-component

Then register and use.

require('aframe');
require('aframe-entity-generator-component');

Keywords

aframe

FAQs

Package last updated on 04 Feb 2019

Related posts