Set properties in response to events in A-Frame
An A-Frame component to register event listeners that set properties. Replacement for old undocumented Declarative Events API.
The Event Set component can register multiple event handlers that set multiple
properties. Use double-underscores (
__) to namespace individual instances of
|_target||Query selector if setting property on another entity.||''|
_target are prefixed with underscores to avoid name collisions
if case another component has
target properties. Any key-value
property pairs provided beyond
_target will be what is set once
the event is emitted.
Install and use by directly including the browser files:
My A-Frame Scene
Install via NPM:
npm install aframe-event-set-component
Then register and use.