Let's say I want a button to always be at the top left of the screen in a game with movable camera and togglable full screen.
I can make the button stay at the top left by making it a child of the Camera2D node so that the movement of the camera is negated, that's no problem.
However, when the button is a child of the camera, this script:
OS.window_fullscreen = !OS.window_fullscreen
Makes it so that a large margin gets created between the button and the physical borders of the screen.
Non-fullscreen:
(Fullscreen version can't be screenshotted properly due to unknow reason)
So, how can I make the button stay on the top left of the window, regardless of size?