- Home /
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 http://www.youtube.com/watch?v=r34-_0wrVC4
This is exactly how I want it to be.
Any other method to draw line?
Please help to solve this issue
done, the code itself is flawed, it wants an input tries to invoke but cancels itself (frame update beats it to the punch)...I got add point to work but fiddling with conditions but the system crippled shoving a 500 Fps to 10Fps because it started a new invoke every frame. I tested it on a Galaxy Ace II same thing happened. so the code you want to be converted is Useless other than a base point to work from
Answer by ddk4113 · Jul 11, 2017 at 07:21 AM
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 :)