How do I make sound play in unity?
Unity has a built in method for triggering events when a button is pressed and this includes an option for playing an Audio Clip. Just create an On Click event trigger, drag a Game Object to the object field and select PlayOneShot(AudioClip) from the Audio Source section of the drop down menu.
How do you add sound to a prefab in unity?
The first thing this prefab needs is an AudioSource component to play sound. In the Inspector, click the Add Component button and type in Audio Source. Then, select the Audio Source option that appears. The cow prefab can now play audio, but it needs an AudioClip to play.