How draw a path using touch in c#

I want to draw a line with line LineRenderer using finger position in c#.

For eg: I need to define the path of a floating object seen on the screen. I draw the path with my finger starting from one of the floating object to another floating object. When I do this it should show a path from the first object to the second object and both these objects travel through the same path.

Please checkout this reference video Super 7 iPad App Review - YouTube

This is exactly how I want it to be.

Any other method to draw line?

Please help to solve this issue

Watch this video of 5 minutes, it uses trail renderer and draws multiple lines at a time.

Just check auto destruct on the trail renderer and set a limited time will destroy the instantiated GO.

I hope this video helps :slight_smile:

https://youtu.be/xlwuGKTyJBs