Hi. I would like to add a modal with a youtube video embedded on it, when I click on a mesh. Is it possible?
Sure and it is purely JS+html actually. You can for instance use mesh action to detect the click and then add an iframe to your HTML document.
How to detect the click:
https://www.babylonjs-playground.com/#INB624#1
Thanks for your example, now i try
I tried your suggestion, but it load in another window and It is not my purpose. What I need is when I click on a mesh, appears a stackpanel or modal with information (for example text or URL)