GUI BabalonJS BABYLON.GUI.Rectangle(); Bacground image problem

Is it possible to put image/picture on GUI Rectangle container ?

I try a lot things. And it seems to me it is impossible to put picture/image on container(background of container).

Have anybody any idea how to not color Rectangle but put on it image/picture ???

https://www.babylonjs-playground.com/#XCPP9Y#1033

Greetings

Use Image not Rectangle https://doc.babylonjs.com/how_to/gui#image

See also HTML5 Game Devs Forum - HTML5GameDevs.com

2 Likes

Or as a child of the Rectangle
https://www.babylonjs-playground.com/#XCPP9Y#1035

allowing us to add more children, like a textblock
https://www.babylonjs-playground.com/#XCPP9Y#1036

2 Likes