Is it impossible to reset trail renderer?

I’d like to know how to clear the trail renderer, so I can manually remove the old trails when I disable it?

There are some approach I had tried, but none of them worked as expected:

  • Instantiate/Destroy trail renderer during run-time is out. I believe such performance overhead should be avoided at all time.
  • Deep copy trail rendere is impossible–material and color array are not accessible through scripting interface (WHY??), and It’s not marked as Serializable, so It cannot be deep copied.
  • The closest one I tried is to set time to negative on disable, and set it back after a few frame. This still won’t work when the object attached move faster.

If there is no approach to reset, I’ll just do the dirty Instiantiate/Destroy one.

1 Like

Yeah, basically. Trail Renderer has always been inadequate for anything but the MOST basic of tasks.

Indeed, TrailRenderer is a quick and limited effect intended for very simple usage. Use a LineRenderer for more advanced usage.