How write html in BABYLON.GUI.Rectangle

This problem has been discussed quite a few times on the forum before, such as:

I think the easiest method would be to draw the HTML contents into a canvas using something like rasterizeHTML.js by cburgmer or this Rendering HTML to an image - Ron Valstar - front-end developer, and then using that canvas as the input to a DynamicTexture Dynamic Textures | Babylon.js Documentation (babylonjs.com) which is the texture source of a Rectangle.

4 Likes