How to mask GUI.Image

Hi,
Can we mask GUI.Image using BABYLON.Layer??. I tried but, it instead masks the entire scene.
If not possible, any idea how i can achieve similar effect.
Attaching the playground also https://playground.babylonjs.com/#XCPP9Y#7411

Here we can see, the layer is masking the entire scene, i basically need to mask image
Thanks

ping @msDestiny14

Hi there! My recommendation is using a container: rectangle, grid, stack panel etc. and then parenting your image inside of it. Should achieve the result I think you’re going for. Hope this helps and let me know if you have any questions.

3 Likes

Thanks @msDestiny14 @Cedric . Using a Container as parent worked. Working playground, https://playground.babylonjs.com/#XCPP9Y#7447
just in case anybody bump up on this.

2 Likes