Search Unity

Audio Unity 2D latest version; AudioSource.Play() not working

Discussion in 'Audio & Video' started by cole_busa, Jul 16, 2018.

  1. cole_busa

    cole_busa

    Joined:
    Jul 16, 2018
    Posts:
    5
    So basically I'm making a 2D platformer for a GameJam and it's my first time really getting into unity. I have everything implemented except sound, but the only problem is I cannot figure out how to get a certain sound to play when a condition is met. I've looked at as many tutorials as I could, but even when I follow them exactly nothing plays. For reference when previewing the audio clips in Unity it does play them correctly. Any tips?
     
  2. cole_busa

    cole_busa

    Joined:
    Jul 16, 2018
    Posts:
    5
    I tried following this tutorial and it did not work.
     
  3. Docaroo

    Docaroo

    Joined:
    Nov 7, 2017
    Posts:
    82
    Show us your code for the audio source that doesn't play!
     
  4. cole_busa

    cole_busa

    Joined:
    Jul 16, 2018
    Posts:
    5
    Turns out I am an idiot and there is a setting that was on for me in the game menu called "mute audio" lol.