- Home /
Question by
VRaptorTheFlash · Aug 06, 2016 at 07:50 PM ·
androidvuforiaaugmented-reality
I want two different sounds to play when same button is pressed
Im working on unity with Vuforia. I have two vehicles in my project. One Van & another Train. I am using a horn button. Using the Gameobject we can attach the Audioclip to it.
The problem here is I can only attach one audioclip to Gameobject and can only play it. Is it possible to play two different sounds when clicking the buttons for two different objects when they are detected in Vuforia camera. Or do I need to create two different buttons to play two different sounds.
Also is it possible to play sound on looping when the button is pressed?
button-press.png
(22.7 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612090255im_/https://answers.unity.com/themes/thub/images/avi.jpg)