Easing Animations

Last updated

Last updated
private void Start()
{
var rect = GetComponent<RectTransform>();
// Since this is a RectTransform, the anchoredPosition3D is being used instead of position
// Animate from (0, 0, 0) to (0, 600, 0) in 1 second with elastic easing (looped)
rect.Move(Vector3.zero, new Vector3(0, 600, 0), 1, Ease.InOutElastic, 0, true);
}