Open lobau opened 8 months ago
This would also boil down to a per-entity debug experience, adding the debug attribute to an element rather than at the app level, rather than rendering the whole physics scene.
we need a more advanced system for sure. I'll dig into dynamic toggling between now and then.
While making demos, I thought it would be really nice to be able to toggle the
debug
parameters dynamically instead of having to edit the code (especially while presenting the demo)So I wrote a bit of code to toggle the parameter dynamically, but it's not working
https://codepen.io/lobau/pen/BabmBRx
The console output is correct:
but the mr-app doesn't show / hide the debug elements