Trail Renderer Scale with object.

Hi,

I have a trail renderer following a golf ball through the air. I have an orthographic camera as I’m actually making a 2D retro style game and so to mimic height - I use scale on my golf ball sprite instead. I would like to use the trail renderer to track the ball to give the player an idea of their shot and the flight path.

I’m pretty much there with the exception of this one last issue: the trail renderer does not scale with my dynamically scaling ball sprite (I scale the golf ball based on it’s Y position, kind of tricking the viewer.)

Does anyone have any experience on this that could give me some help? How can I scale the trail from the ball as it is produced? I assumed it would automatically scale with the object it is attached too - but it simply stays at its original size. Thanks in advance

Korpers.

You have to set TrailRenderer.widthMultiplier manually along with an object’s scale. For some reasons TrailRenderer ignores hierarchy scales.