Removing GUI.Rectangle color, or adding an image to InputText?

I’m currently attempting to design a login screen for my game, I’m unable to add an image to inputText, So I’ve made a rectangle container, and added the image, and inputText there.

https://www.babylonjs-playground.com/#QZYL3F#1

is there a way to remove the white box around everything? All I’ve been able to do is change the color, or change the alpha (which affects the image and inputText too…).

Am I going about this the wrong way? Thanks in advance.

Hey!

just thickness = 0

https://www.babylonjs-playground.com/#QZYL3F#2

@Deltakosh thank you so much! I feel silly not being able to find that lol.

1 Like

@Deltakosh while we’re here, is there a way to remove the focused background of inputText/inputPassword? Also, does thickness work for all containers?

You should be able to set inputText.focusedBackground = null

1 Like

Thank you, that worked. :slight_smile:

1 Like