Hi guys, this question may be stupid, but I cant get my head around with this. So how to move one UI element to the position of another UI element? Their parent gameobjects are different. Which property (anchoredPosition, localPosition, position) and HOW should i use for smooth interpolation (in Coroutine for example)?
convert the start and end points into worldspace coorindates, lerp/coroutine/whatever the recttransform position from start to end, change the parent when it reaches the end.
1 Like
Can you tell which functions to use for converting into worldspace? Documentation is not so clear for me. I have tried this, but it seems not working:
RectTransformUtility.ScreenPointToLocalPointInRectangle(myRectTransform, myRectTransform.
anchoredPosition, Camera.main, out worldSpace);
from the link…