
I have a simple scene called GameWorldNode with three child nodes attached to it. Each child node has a ColorRect of a different color and one button. My goal is to switch between each child to simulate menu navigation.
When GameWorldNode enters the Scene Tree, move_child(...) method runs inside GameWorlNodes' ready() method and correctly sets the the ApartmentNode to index = 2 and displays the Apartment Menu on top of all the other nodes. If I do not run the move_child(...) method inside ready() then the CombatNode menu will be correctly displayed on top.
However, during a press_button() event inside the ApartmentNode, move_child() sets the BaseLevel node to index 2 correctly,(I double checked with get_node("BaseLevel").get_index() ) BUT the BaseLevel does not draw on top of all the other nodes, even though it is indexed correctly within the scene. ApartmentNode is still visible on top.
Why does the BaseLevel node not draw on top of the other nodes after setting its index to be above the other nodes?