- Home /
2d background music visualiser?
I have a basic 2D game with some bassy background music and it'd be great if I could somehow pulse the background based on the music? Or maybe have some bars going up and down based on the sounds?
I've seen AudioSource.GetSpectrumData() but I have no idea how to use it.
Tips? My background at the moment is just a colour.
Start by reading up here:
http://docs.unity3d.com/Documentation/ScriptReference/AudioSource.GetSpectrumData.html
Try out the test code in the docs, it looks like it graphs the spectrum data. You can try and figure out how to use it that way.
Your answer
Follow this Question
Related Questions
Why do I get those green lines? 0 Answers
How can I speed up getSpectrumData for visualization of audio on mobile? 1 Answer
A node in a childnode? 1 Answer
Changing multiple toggle states. 0 Answers