LTDescr tween = LeanTween.move(gameObject, new Vector3(2, 0, 0), 1f); tween.setEase(LeanTweenType.easeOutQuad);
LTDescr tween1 = LeanTween.moveX(gameObject, 2f, 1f); LTDescr tween2 = LeanTween.moveY(gameObject, 1f, 0.5f).setDelay(1f); LTDescr tween3 = LeanTween.moveZ(gameObject, -3f, 0.8f).setDelay(1.5f); LTDescr tween4 = LeanTween.rotateAround(gameObject, Vector3.up, 360f, 1f).setDelay(2f); LeanTween.sequence() .Add(tween1) .append(tween2) .append(tween3) .append(tween4);In this example, we create a sequence of tweens that move the game object along the x, y, and z axes, and also rotate it around the y axis. The LTDescr belongs to the LeanTween package library for C#. It provides a streamlined way to create and manage tweens on game objects in Unity.