Replaces a node in a scene by the given one. Subscriptions that pass through this node will be lost.
+ Note that the replaced node is not automatically freed, so you either need to keep it in a variable for later use or free it using [method Object.free].