RectTransform extension method to move one RectTransform to another
1 Overview
3 Methods
4 Usage
6 See also
A programmatic extension that enables you, through code to move a RectTransform from one point on a screen to another point on the screen using a target RectTransform. This aligns all the Anchors, Pivots and offsets of the Target RectTransform.
Using this utility through code is very simply, just call:
sourceRectTransform.switchToRectTransform(targetRectTransform);
And the Source (from) Rect Transform will be moved to mimic the Target (to) RectTransform position.
N/A