How to make a line renderer move

Im working on a project and i want to make a line renderer move left or right by tapping the screen but im stuck.

use this game as an example.
Can someone help?

3380264--265305--Sem TĂ­tulo.png

You’ll need to use a Line Renderer with “Use World Position” toggled off, so that the line renderer can follow the object’s position without needing to change the “Positions” array. Then you can move the object as normal.

4 Likes

you are a bloody god

And the LineRenderer is still nothing to do with 2D. :wink:

Thank you very much sir

Welcome to the forums,

It’s great to show appreciation but please use the “Like” button so you don’t end up necroing the thread.

Thanks.

Thread Closed.