How write html in BABYLON.GUI.Rectangle

Hello
How write html in BABYLON.GUI.Rectangle
Please help me

cc @carolhmj :slight_smile: who is amazing

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

Hello @farukcelim just checking in, was your question answered? :slight_smile:

Haven’t I read something in this forum about 2 weeks ago regarding an upcoming PR that will let us use ‘simple’ styling in a tb?
I’m still waiting on this one (or did I miss it?)

Yeah there is the StructuredTextBlock PR StructuredTextBlock (GUI 2D) by cronvel · Pull Request #11383 · BabylonJS/Babylon.js (github.com) but it isn’t finished yet