You can change the style of Panel node or just remove it.

It not work

And I want to keep the Panel style :)

Can you provide test scene? As I understand everything outside green border and title should be transparent?

Control Nodes are transparent. They are just containers for whatever you put in them. You probably need to set a theme or a theme override to customize what you want.

@cybereality said: Control Nodes are transparent. They are just containers for whatever you put in them. You probably need to set a theme or a theme override to customize what you want.

Lets rephrase the problem so.. :)

From this screenshot seems I need to set transparent the window? The external border black because I can set it borderless. There is a way? The real size will be something like this:

So when this scene will be rendered it will be modal on top another scene. So the black border will be visible. And I want it to be transparent.

Here borderless on top on a green background

Ok, I think i get it now. You want transparent background in your app just like in the provided test project?

So you want the window itself to be transparent?

get_tree().get_root().set_transparent_background(true)

And make sure "Per-Pixel Transparency" is Allowed and Enabled in Project Settings.

@pkowal1982 said: Ok, I think i get it now. You want transparent background in your app just like in the provided test project?

I tried your project. Yes its what I need.

But why it don't work into mine? Linux? C#? It don't work in Control node? I set GetTree().Root.TransparentBg = true; in _Ready function like you did. But you see?:

Nothing happen... :(

@cybereality said: So you want the window itself to be transparent?

get_tree().get_root().set_transparent_background(true)

And make sure "Per-Pixel Transparency" is Allowed and Enabled in Project Settings.

YES!!!!

Thank you very much! <3

Thank you @pkowal1982 too :)

8 months later

If you do a change_scene is the transparency lost?

In my demo I want to have a label pop up that says you won. So I have an IF statement that says if monsters < 1 then:

get_tree().change_scene("res://UI/EndScreen.tscn")

This works fine except that the Control, MarginContainer, and CenterContainer (I've tried all three) nodes all have a dark grey background that covers the screen framing the text. I don't have any theme set or any colors picked. I simply want the text to be posted on the screen that says you've won and am using those containers to center the message.

Any ideas how to fix this? I'm using version 3.4.3.

2 months later