- Home /
Click Sound
I have a script that plays a sound on mouse click. But I have a problem here, it says:
"No appropriate version of 'UnityEngine.AudioSource.Play' for the argument list '(String)' was found."
Here's the script :
function OnMouseDown ()
{
if(Input.GetMouseButtonDown(0));
audio.Play("Click");
}
Comment
Your answer
Follow this Question
Related Questions
GameObject Audio On Mouse Click 2 Answers
Animation when mouse button is held down? 2 Answers
Deplacement point & click help 2 Answers
mouse clicking on the plane and drag to other position 1 Answer
Right Mouse Click in Android 2 Answers