- Home /
More ways to use Trail Renderer
Is there a way to program trail renderer from a script? I want to be able to write a script that holds all the information necessary to create a trail renderer based on user's touch points. I'm doing this because all of the user's touch information is hard coded and I want to be able to draw the trail renderers where the user is touching the screen.
Basically what I am asking is how do I initialize the trail renderer from a script and how do I make it show up on the screen when I tell it to?
Answer by YourGamesBeOver · Mar 07, 2014 at 03:07 PM
Try using a LineRenderer instead. Just manually store the points you need to be rendered in your script and use SetPosition(). It sucks to have to write all that, but i find it works a lot better than trying to rely on a TrailRenderer.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
A node in a childnode? 1 Answer
Making changes to a terrian in game 1 Answer
C# SetActive GameObject Array 2 Answers