How can I used TrailRenderer.startWidth ?

I am trying to set TrailRenderer.startWidth

This is my code : `function Start(){ Trailrenderer.startWidth = 5.0; }`

But is wrong, so How can I used TrailRenderer.startWidth ?

Thanks a lot.

You probably need to get a reference to your trail renderer. You'll have to declare this at the top of your script:

var trail : TrailRenderer;

Then set the reference in the inspector and use this code:

function Start()
{
   trail.startWidth = 5;
}