Table of Contents

SwitchToRectTransform Method

Namespace
DG.Tweening

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

from RectTransform
to RectTransform

Returns

Vector2