My current hierarchy looks like this
-ParentOne (Image Element covering left half of 2D screen)
-Child (Image Element covering left half of ParentOne)
-ParentTwo (Image Element covering right half of 2D screen)
When I call Child.reparent(ParentTwo,0); my hierarchy will change to this.
-Child (Now Image Element covering left half of ParentTwo)
Since the local position and local scale data is retained instead of the global data, the Child Image element will pop into the left half of ParentTwo. I’d like to retain the global position and scale so after calling reparent the Child object will stay in the same global position/scale it was in. I’m not sure how to do it.
I’m thinking it would work something like
//Store parent info
//Reapply stored parent info
but I’m not sure what Info I’d need to store and how to re-apply it. Thanks for the help!