Category: Javascript
Category : Full Script , Game Development , Javascript , Unity
Earlier today I stumbled upon a perfect little script for extracting audio data from an audiosource component in unity. It does all the calculation for getting the RMS value, the decibels, and frequency.
This script can easily be applied to make things behave to the music being played in the Audiosource component. Like making an object bounce or move back and forth with the music.
Thanks to Aldonaletto from this Unity Answers post for making this one and explaining it so well. Script below.