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?

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.