My game doesn’t seem to play any sound ?

Updated on July 19, 2015 in [A] Audio
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
2 on July 19, 2015

I was following the Pong tutorial and Everything is fine . I can get the background music to play just fine but

The sound which is played after ball hits the player or when the ball hits the goal .

The Code is :

function blah blah blah () {
//check for collosion with player
audio.Play();
}
and in the unity editor I assign a sound to audio source.

(Because I am using unity 5. after editing the code and going to unity It Says Update api.
after I update api. It gives me no errors. But with no errors No sound Also)

Doesnt work :/

  • Liked by
Reply
0 on July 19, 2015

BUMP

  • Liked by
Reply
Cancel
0 on July 19, 2015

does it work at all?
Because usually you’d use

audio.PlayOneShot();

This is because you don’t want it to loop the sound, you just want to play it once.
Try that and see if it fixes anything

  • Liked by
Reply
Cancel