The Unity Audio Mastery Course
Randomized Modulation

Video Timeline:

Need The Transcript For This Lesson?

Randomized Modulation Transcript

Need The Finished Scripts From This Lesson?

PowerUpAudio.cs (Modulation Method 1)
PowerUpAudio.cs (Modulation Method 2)
PowerUpAudio.cs (Modulation Method 3)

Need More Help?

Hard-Coding: To fix (data or parameters) in a program in such a way that it cannot be altered without modifying the program.
Local Variable: A variable that is declared within the body of a function. These variables can only be used within the function it was declared in. Because the variable is declared inside of the function, it technically doesn’t exist until the function is run. Then once the function has finished, the variable and it’s data is removed from the game’s memory, making them an efficient option for data that is only needed temporarily.
Global Variables: These variables are almost the opposite of local variables. These are declared within the main class of our scripts. Up until this lesson, most of the variables that we’ve declared have been Global variables. These variables – and the data within them – exist for as long as the script is active for in our scene/game. They’re good if you need to use the same data in multiple different functions.

Unity Resources:

Why And How To Use Encapsulation (AKA Serialized vs public variables) In Unity With A Simple Example
Solve Equations With ‘Order Of Operations’
Random.Range(); Function – Unity Docs

This Lesson Is Part Of Many More From…