I need to change the parent of a node while the game is running:
However this technique disconnects all signals to this node, because well, the node has to leave the SceneTree before being added again...
This is a bit silly because my intention is not to destroy the node, just change its parent within the same scene.
In addition, the script that moves the node is not supposed to know which signals are connected, it just changes the hierarchy.
Is there a better way to do this without having to reconnect everything?
Edit: I also thought I could write a helper that fetches the list of connections and restores them afterwards, but I cannot find any