cynerboyNov 14, 2023Post #1 Tuesday, November 14, 2023 1:31 PM How can I move node C to the sub node of the master without deleting the node in the code? Thanks.
popcar2Nov 14, 2023Post #2 Tuesday, November 14, 2023 2:21 PM cynerboy Remove the node then add it back wherever you'd like var c: Node = $"b/c" $b.remove_child(c) add_child(c) This removes the node from b and adds it back as a child of master
xyzNov 14, 2023Post #3 Tuesday, November 14, 2023 2:46 PM Best Answerset by cynerboy Nov 14, 2023cynerboy There's also reparent() $b/c.reparent($a)
cynerboy How can I move node C to the sub node of the master without deleting the node in the code? Thanks.
popcar2 cynerboy Remove the node then add it back wherever you'd like var c: Node = $"b/c" $b.remove_child(c) add_child(c) This removes the node from b and adds it back as a child of master