Skip to content

DouglasUrner/Unity-Examples-Sound-Effects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Examples-Sound-Effects

How to add sounds to your games.

Tutorials

  • Introduction to Unity Sound
  • Sound Effects & Scripting - this one is old, it is marked as "Checked with version: 4.5" and includes a section on "Sound Effects in Unity 5" so it may take some translation. The starter and final code for this tutorial is in the Barn Blaster directory.

Key Points

Components:

  • AudioSource - plays the sound (think iPod)
    • AudioClip - the sound to play (the sound file the iPod plays)
  • AudioListener - the game object that "hears" the sound, often the player or the main camera. In 3D games the distance between the AudioSource and the AudioListener affects the volume when the AudioClip is played.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages