Manual     Reference     Scripting  
  
Scripting > Runtime Classes > TrailRenderer Switch to Component   

TrailRenderer.autodestruct  

var autodestruct : boolean

Description

Does the GameObject of this trail renderer auto destructs?

When set to true, the GameObject will be destroyed when it is not moving anymore.