...

/

The event-set Component

The event-set Component

Learn to invoke events and manipulate target entities via the event-set component.

The event-set component simplifies event-based interactions. Previously, we saw that we created components that listened to events such as a click or intersection events. Then, we attached these components to entities to detect interaction events. This process can be made easier by using the event-set component provided by the following JavaScript file:

Press + to interact
<script src="https://unpkg.com/aframe-event-set-component@4.2.1/dist/aframe-event-set-component.min.js"></script>

Using event-set to invoke events

In this example, we’ll see a basic implementation of the event-set component that will demonstrate its simplicity in ...