I’m trying to implement an ES6 way of development following the ES6 page (ES6 - Babylon.js Documentation). It’s good for code splitting and organizing things as web components. I’m doing fine with this part.
My goal is to have a (DOM) button that hides an imported gltf node (called “C1”). My current problem is that:
- I either don’t know how to access any gltf node (“C1”) from outside of the Game Class.
- or I don’t know how to access the DOM from inside the importing gltf method.
I would prefer solution 1 because I cant apply this solution more broadly. However, any of them will hep me a lot because I am at a dead end (with my current knowledge of programming).
I have done my best to reproduce my code in the Playground… but the results is not perfect. You can see my logic though. If you have any other idea, tell me.
Thank you for reading this.