Audio Source
An Audio Source is a component that is used to play back sound in the application space. Attached to GameObjects, Audio Sources can be moved along with the GameObjects to create the effect of moving sound. Imagine that a car is coming down your street with its horn held down. If you were standing outside on the street as it went by, you would be able to determine that the horn was in the front of the vehicle. If someone runs their fingernail down a chalkboard--assuming you are not completely freaking out from the sound--you would be able to see and hear that the sound was coming from where the fingernail touches the chalkboard. The sound sources have an obvious point of origin.
The same applies to the Audio Source component. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access