-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
componentchanged listener broken starting 0.9 #4531
Comments
Without code to run is hard to investigate. FWIW, it works for me: https://glitch.com/edit/#!/trite-aerial-flyingfish?path=log.js:9:4 Notice that you also importing A-Frame twice in your HTML |
Closing this. We can reopen if it’s still an issue |
This only works if the component itself is responsible for changing the entity. When I comment out the tick function and add wasd-controls to the box entity nothing gets logged anymore? Maybe I'm missing something here, but shouldn't this.el give the entity (so in your example a-box). So then wouldn't this.el.addEventListener('componentchanged') fire whenever any of the components are changed? Also when I use Aframe 0.8 or earlier the logging happens, but anything after it no longer logs |
wasd-controls is an exception. For components that are going to modify position, rotation, scale every frame we recommend bypassing
|
Description:
componentchanged event listener never fires in versions after 0.8
AFRAME.HTML
The text was updated successfully, but these errors were encountered: