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 Use the Babylon GUI - Babylon.js Documentation

See also GUI HUD - Background Image - Questions & Answers - HTML5 Game Devs Forum

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

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