- Home /
Will disabled trails still get generated?
hi I have two trails attached to one object, but there is only one trail active at a time. Depending on the state of the object, one trail will get disabled and the other one enabled. However, when I enable both trails, both are generated. Shouldn't the trail which was disabled before start from the beginning? I'm a bit concerned about the performance, because this would double the amount of trails in my game ... and I have quite a lot of trails ^^
Answer by Devon Hall · Aug 29, 2012 at 10:41 AM
Unity is usually very good with Performance and preserving Performance in Memory Management. When an object is disabled essentially its not being acknowledged more than existing (the position). If performance is much of an issue you can always look into the Instantiate and Destroy Process'.
Instantiate: http://docs.unity3d.com/Documentation/ScriptReference/Object.Instantiate.html Destroy: http://docs.unity3d.com/Documentation/ScriptReference/Object.Destroy.html
I hope I could help even a little bit!
Your answer
![](https://koobas.hobune.stream/wayback/20220613080332im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Boost Streak/Trail 6 Answers
How to force a trail renderer to re-render in the same frame? 0 Answers
Trail renderer on top of player object 0 Answers
TrailRenderer coexisting with sprites 2 Answers
Trails in just one direction 1 Answer