a-frame mouse interaction code example
Example: a-frame mouse interaction
// `click` event emitted by browser on mouse click.document.querySelector('p').addEventListener('click', function (evt) { console.log('This 2D element was clicked!');});
// `click` event emitted by browser on mouse click.document.querySelector('p').addEventListener('click', function (evt) { console.log('This 2D element was clicked!');});