- Home /
Question by
phoenixentco7 · Jun 20, 2012 at 08:12 PM ·
soundmusicpress
Help playing sound on keypress
I want to play a sound when I press the number "1" in the keyboard, how do I do it
Comment
Answer by Huma · Jun 20, 2012 at 09:05 PM
Playing AudioClip is described here: http://answers.unity3d.com/questions/12546/playing-audio-clip.html
Input.GetKey(KeyCode.Alpha1) will catch the "1" on the keyboard I think.
Your answer