• Godot HelpGUI
  • Why is my Panel disappearing when I press on the screen?

Hello,

I've set up a situation where a Node instantiates a Panel programmatically. When I run the scene the Panel pops up at the center of the screen, when I press anywhere on the screen the Panel disappears. If I press on the panel it stays visible. What can be causing the behavior? I've checked and the Panel remains a child and does not change it's global position (2D), so it's not disappearing or getting freed.

Ok, so to add a question to this, I realized I was using PopupCentered() to make this Panel so I deleted that and then the Panel doesn't show up at all. Do panel's need to be somehow activated through Popup?

Do panel's need to be somehow activated through Popup?

No, Panels always display whenever their visible property is true.

I'd recommend checking the Remote scene tree while the project is running (click Remote in the scene tree, which is only visible while the project is running).

@Calinou said:

Do panel's need to be somehow activated through Popup?

No, Panels always display whenever their visible property is true.

I'd recommend checking the Remote scene tree while the project is running (click Remote in the scene tree, which is only visible while the project is running).

Hey @Calinou Thanks for the tip. It helped me figure out that there was a container above the panel that was sett to invisible. Things work now!

9 months later