Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Play Sound on Screen Tap/Button Press?

Discussion in 'Scripting' started by tsatwal, Aug 21, 2014.

  1. tsatwal

    tsatwal

    Joined:
    Oct 2, 2013
    Posts:
    21
    Hi,

    I am making a Wii U port of my game and I really want to "wow" Nintendo. I know how to script but for some reason cannot make a script for playing a 1 second (probably less, just guessing) sound clip on screen tap/button press. Is there a script out for that? Youtube tutorial? Thank you.
     
  2. hariavm

    hariavm

    Joined:
    Aug 18, 2014
    Posts:
    73
    play the sound using audio.play()
     
  3. tsatwal

    tsatwal

    Joined:
    Oct 2, 2013
    Posts:
    21
    I'm sorry, could you elaborate? I'm not sure how to incorporate this into a script.