How to change node index in scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fish2091852127

I find a function “move_child” but i unknow to what effect
I want to change a node index in scenetree
such:
GridContainer
-NodeA
-NodeB

re-order nodeB to index 0 in the parent tree (at NodeA’s position)

:bust_in_silhouette: Reply From: kidscancode

You’re on the right track:

move_child($NodeB, 0)

How can I move a singleton to come over the background and not be hidden behind the background/tilemap ?

sarthakroy | 2020-07-29 15:54