I read from the aframe docs that whenever we update the position or any other value the update of the attached component would fire I am just trying to fire the update on every position change.
This is the component:-
AFRAME.registerComponent('checking', {
init: function(){
console.log("initialized");
},
update: function(){
console.log("valueUpdated: "+this.el.id);
},
tick: function(){
}
});
update is being fired once with the init when the doc is loaded but not when I am doing this from the console like obj.setAttribute("position","4 6 7");
acc to the documentation it should happen right or I am making some very basic mistake?
Thanks...