LineEdit background transparency?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DeafSavage

I want to have only the LineEdit in the middle of the screen, but the entire background is grey when I play a scene.

How do I make sure the background is completely transparent and only shows the LineEdit label?

:bust_in_silhouette: Reply From: njamster

Select your LineEdit-node in the tree and navigate to the “Custom Styles”-section in the inspector. Choose to create a “New StyleBox Empty” for both “Focus” and “Normal”

To add on to this answer, due to some changes in the 3.4 update, you are required to go to Control>Theme Overrides>Styles to do this. The steps to add the new stylebox are exactly the same.

Adam_Grace | 2022-07-29 18:36