- Home /
Question by
KaydenK · Apr 26, 2016 at 04:27 PM ·
scripting problemscripting beginnersound
How would i trigger sound on collision?
I cant seem to find a way to make a sound activate on collision please help!!! :)
Comment
Answer by Vagonn · Apr 26, 2016 at 05:12 PM
Read these two docs and combine. You are done :)
http://docs.unity3d.com/ScriptReference/MonoBehaviour.OnCollisionEnter.html
http://docs.unity3d.com/ScriptReference/AudioSource.Play.html
Your answer
Follow this Question
Related Questions
How can i find loudness of microphone from code? (code not working) 2 Answers
How to lock an int as a playerPref? 1 Answer
help with enemy health script 2 Answers
Unity 2D movement and rotate sprite to the direction it is moving in 1 Answer
How to rotate my player with the gamepad right stick ? 0 Answers