var credit_scene = credit_sub_scene.instantiate()
add_child(credit_scene)
But the credit scene is not aligning to the center after clicking a button to add it to the root scene, even though I placed it to the center in the editor.
See visual:
Is there something I should do and a setting I should tweak for it to be centered at runtime? Thanks
spawn the credit panel inside a CenterContainer Node that has the layout using Anchors and set it to Full Rect. If suddenly your panel collapse to zero sizes, then you just need to add custom minimum size to it
Hi, did what you said, I placed the Panel node in the CenterContainer node, but now, when I click the Credits button, the panel doesn’t have a background. Like, there’s no visual on screen to see the panel