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.