SwitchToRectTransform Method
SwitchToRectTransform(RectTransform, RectTransform)
public static Vector2 SwitchToRectTransform(RectTransform from, RectTransform to)
Converts the anchoredPosition of the first RectTransform to the second RectTransform, taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
Parameters
fromRectTransformtoRectTransform
Returns
- Vector2