Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building Levels in Unity
  • Table Of Contents Toc
Building Levels in Unity

Building Levels in Unity

By : Volodymyr Gerasimov
5 (2)
close
close
Building Levels in Unity

Building Levels in Unity

5 (2)
By: Volodymyr Gerasimov

Overview of this book

The book is aimed at game artists with no past programming experience who are interested in designing levels in Unity. It does not assume detailed knowledge of similar game platforms.
Table of Contents (12 chapters)
close
close
4
4. Dealing with Basic Animations
11
Index

Audio sources and receivers


The way the audio works in Unity is no different from the real life that it's trying to imitate, and it all comes down to collaboration between objects that emit sounds and those that receive them. In Unity, both of them are components, known as Audio Source and Audio Listener. Being components, they can be attached to any GameObject via the Add Component menu in the Inspector window:

Alternatively, you can create an empty GameObject with an audio source or reverb zone by navigating to GameObject | Audio in the top menu.

Note

For future references, we will use the Audio Source created from the top menu.

Audio listener

Unlike the audio source, we already have an Audio Listener present in every scene by default; it's attached to the MainCamera object.

Audio Listener doesn't have any parameters and all it needs to function is to simply exist in the scene. There is, however, one rule that should be followed when dealing with audio listeners:

Note

The Scene always has...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building Levels in Unity
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon