Move sprite from one canvas to another, but not move screen position ?

How do I move an object from one canvas to another, but maintain its position ?
E.g. I have 2 canvases, both in the same place, both with their own camera (also in same positions).
There is a button sprite on canvas 1, somewhere in hierarchy of objects…
I want to move the button from canvas 1 into canvas2/camera2 , but into a different hierarchy on canvas 2. But maintain the same position on the screen… how would I go about doing that… ?

Storing old world pos, and setting it after moving to canvas 2 doesnt work, as the rectTRansform re-positions object.

would I have to move it first, then calculate offset of world co-ordinates of where it is to where it should be ? and can I do that right after the move, or will I need to wait a frame or something ? also… will world position even be relevant when dealing with Rect Transforms ?

Help appreciated, thanks in advance.

If everything lines up, you should just be able to change it’s parent.

It does include a bool parameter to maintain position. What issue are you seeing when you change canvas?

Yep I was moving the parent… but had some other issue… which was a bit tricky…
one of the cameras was a child of the canvas… so there was some weird circular thing going on, where canvas relies on camera, but when canvas initialized, it moved the camera again , which caused thing to go out of whack (technical term) After moving the camera outside of canvas hierarchy, all was good again. Thanks for the help