Aframe.io: Add border to <a-curvedimage> on mouseover using
问题 How would I add a border to a curved image when selected? The following code will change the material color of the image however I'd prefer to add a border or glow instead. AFRAME.registerComponent('selectable', { init: function () { var el = this.el; this.el.addEventListener('mouseenter', function (evt) { this.setAttribute('material', 'color', 'blue'); }); this.el.addEventListener('mouseleave', function (evt) { this.setAttribute('material', 'color', ''); }); } }); Here is a JSBIN showing