For example:
LeanTween.moveY(gameObject.GetComponent<RectTransform>(), 2, 1f).setLoopPingPong().setEase(LeanTweenType.easeInOutSine).setPhase(UnityEngine.Random.value);
For example:
LeanTween.moveY(gameObject.GetComponent<RectTransform>(), 2, 1f).setLoopPingPong().setEase(LeanTweenType.easeInOutSine).setPhase(UnityEngine.Random.value);
You can remove .setEase
Try This
LeanTween.moveY(gameObject.GetComponent<RectTransform>(), 2, 1f).setLoopPingPong();