How do I attach more than one sound to an object

I’d like to attach a range of sounds to an object or at least have the object able to play multiple sounds depending on certain circumstances or by random timing (or both) when I add a sound when there is already a sound, it is over-written. :face_with_spiral_eyes: also does Unity have a randomizer slider for randomizing the timing?

One other thing, unrelated. Could unity by chance save changes to the scene while playing it? I know it’s my fault, but countless times I’ve edited and made the scene just how I wanted. I try to save and it “dings” at me as to say it can’t, so I realize oh my! I’ve been having it play this whole time. I press stop and a lot of things revert. The terrain doesn’t and some things stay thankfully, but a lot of things revert and makes me want to cry.

Thanks!

  1. Write a script to store all the sounds in a list, then when you want to play a certain sound just give the audiosource the track and play it. (or playoneshot it)

  2. This is an annoyance, but if you’ve realized you’ve made tonnes of changes to the scene while playing, you can copy the gameobjects you’ve made changes then click stop, it’ll revert but then paste the copied gameobject and it’ll copy with changes you made then just update changes or move duplicate.