Popup not allowed to exit default camera/screen.

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

When I try to use a popup node outside the starting camera it jumps back to it. How can I stop this?

I set up a test project to demonstrate this. enter image description here

As you can see I added a camera node and then added a popup node with a panel. The panel is on the edge of the camera which means theoretically when we play it should be on the edge of the screen half way off. Playing we get:


But as you see the popup node is not on the side of the screen. Through some debugging I found that the popup node jumped from the right side into the box of the original camera. How can I stop this. Since I want to have popups outside of some small box.

Hey, I’m tearing my hair out with this same issue. Did you ever solve this??

Pluto1 | 2020-12-04 05:00

:bust_in_silhouette: Reply From: the.Alien

I don’t know the exact organization of your project, but probably you should put the GUI elements in a CanvasLayer. See:

https://forum.godotengine.org/396/gui-not-following-camera

I don’t want the popup to actually be following the camera. I just want it to be in the scene not a canvas layer.

jujumumu | 2020-03-25 15:34