I am trying to change the length of my line renderer over time using DOTween.
LineRenderer myLineRenderer = GetComponent<LineRenderer>();
myLineRenderer.SetPosition(1, new Vector3(x, 0, 0));
This code snippet changes the position of myLineRenderer to x
. How can I use DOTween to set the position gradually to x
over 1 second?
Why not just tween it yourself?