ColorRect's dissapear when they are in another scene

Godot Version

v4.3.stable.arch_linux

Question

I’ve made a “Game_Over_UI” scene that is shown when the player dies, it is as follows:
Gameover_tree

I also made a “Upgrade_UI” scene that is as follows:
Upgrade_UI_tree

The two scenes are in the “Main_Scene” scene which is as follows:
Main_Scene_tree

My problem is that when the two scenes are a child of the “Main_Scene” the “BG” ColorRect is invisible, For example on the “Game_Over_UI” scene:

Normal:
Game_Over_normal

On “Main_Scene” (I took it a little bit crooked):
gameover_weird

Even when I try to make the ColorRect visible by code on the “Main Scene”, it still doesn’t show.

Is there any way to fix this issue? Thanks in advance

PD: I am not a native English speaker, I apologize for any misspelt word or incorrect sentence

Normally you dont use a color rect as a background. Instead try to look into panelcontainers

Thanks!, I tried using a PanelContainer and it worked perfectly! Thank you so much

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.