- Home /
Adding multiple audio clips to a single game object
I have a gameobject that jumps and shoot. I have two audio clips for the same and I want to play them whenever the specific action is performed. Can I do this on the same script attached to the gameobject. If yes, then how? Or do I have to create an empty gameobject and call my audio clips from there? Thank You!
You can add multiple AudioSource components to the same GameObject. $$anonymous$$eep references to them in one of your scripts and play them as needed. In the long run, I suggest writing an Audio $$anonymous$$anager of some sort.
Your answer
![](https://koobas.hobune.stream/wayback/20220612142430im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
It is possible to start a streaming AudioClip not from the beginning ? 1 Answer
Audio loops too early 2 Answers
How to create an audio manager script with input from triggers? 2 Answers
No overlapping sounds 0 Answers
Question about audio (AudioSource). My ingame sound doesn't sound like the original audio file? 3 Answers