Help with sound - how to best use the sound component? (SOLVED)

I have an standart object that i use for much characters and change sprite of this GO. And every of characters have his own 2-4 sound. And i need a help with containig so much sounds. As i understand i need to add every sound to GO?


like that, or i can create an atlas of sounds or something else, please give me an advice.

You can create a single sound game object in a collection, that will hold all your sounds. So in your actual game objects would play sounds from that single game object.

good

Yes, this is a good recommendation. It’s also good to encapsulate it further so that the game object with all of the sounds also has a script. You could then send messages to the script to play sounds and the script could chose from multiple sounds for added variation.

1 Like

goood