Topic was automatically imported from the old Question2Answer platform.
Asked By
psear
I have a “main” scene and a “menu” scene. When I edit the menu scene on its own, it is positioned correctly in the display, centered (it’s a control scene with everything inside a CentreContainer). But when I instance it via code from my main scene, the whole menu moves to the top left. What am I doing wrong?
Are you using a camera node to follow the player? And, if so, is your menu instanced as the child of a canvas layer?
Just putting this here as I found an answer, as it turned out, the rect_size didn’t follow through when I instanced it, it just started as the minimum rect_size, so I set the minimum rect size on the initial scene to the value I needed it to be, and all is good.