I load a texture using the asset manager, once load is complete, I create a sprite using that texture.
I created a PG where you can see the code working:
http://www.babylonjs-playground.com/#1KDQTU#6
But when I try to run the exact same code in my project, nothing appears.
The DOMContentLoaded listener was written in a way that'd allow me to keep my PG createScene() unmodified.
What am I missing?
window.addEventListener("DOMContentLoaded", () => {
windo
I load a texture using the asset manager, once load is complete, I create a sprite using that texture.
I created a PG where you can see the code working:
http://www.babylonjs-playground.com/#1KDQTU#6
But when I try to run the exact same code in my project, nothing appears.
The DOMContentLoaded listener was written in a way that'd allow me to keep my PG createScene() unmodified.
What am I missing?
window.addEventListener("DOMContentLoaded", () => {
windo