Is there anyway to reset the Trail Renderer
or clear the trail of Trail Renderer
?
I’m currently using object pooling to avoid performance issue about run-time instantiation, but the trail renderer doesn’t reset correctly – it leaves streaks every time it gets enabled.
I had searched a lot of answers and threads, the closest one is to set time to negative on disable, and wait a few frame to set it back. But this approach still won’t work if the bullet runs faster.
I had to change the yield at line 20 for this one to make it work: yield return new WaitForEndOfFrame(); This will work as long as you have a camera rendering your scene.
– MnemosyneWork for me! Thanks
– Ethiopic