Does "Spawn Sound Attached" pile up over time when not being destroyed?

No it won’t pile up forever it will eventually get collected with the garbage, so if you’re not making a lot of spawn calls it should be fine.

I do personally think it’s better if you are going to be making a lot of calls to spawn the sound you are better off simply creating the object with a sound component already attached then calling play on the sound instead, this way you don’t need to keep making spawn calls. Or if the object isn’t moving then you can simply “PlaySoundAtLocation” as another option, saves you from spawning the full component each time.

Not trying to tell you how to suck eggs, you probably have a reason for doing it the way you are and if you’re not trying to milk every frame for performance then you should have no problem with the way you doing it, it won’t overflow with sound components. :grinning_face:

Should be noted though, if you untick “Auto Destroy”, which is on by default, then they will build up…

1 Like