I want to play a sound when I press the number "1" in the keyboard, how do I do it
Jun 20 '12 at 08:12 PM
Jun 20 '12 at 06:13 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.
Jun 20 '12 at 09:05 PM
Jun 20 '12 at 08:57 PM
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Jun 20 '12 at 08:12 PM
Seen: 671 times
Last Updated: Jun 20 '12 at 09:05 PM
3D Audio: Selectively Apply the Doppler Effect.
How to stop sound from skipping during GC collection?
How do i add/import sound effects and/or music into my game?
Destroy "Don'tDestroyOnLoad" script in a specific scene ??
Unity and music tracks - load track at certain point and fading tracks in and out
Playing music while scenes change?
Free soundtrack making tool
Theme music for approach to object question
Guitar Hero style game?
Is there any way to destroy script at certain level ?