- Home /
sound controlled objects?
Hello, Is it possible to make sound controlled objects like in Cinema 4D? I want to do something like this in unity, for a menu: [Click][1]
Thanks! [1]: http://www.youtube.com/watch?v=gpDnikhWNJg
Answer by Philipp · Dec 10, 2012 at 05:22 PM
These effects are commonly done by reacting to the spectral data of an audio file (i.e. how much energy is there at different frequencies). Unity's AudioListener has a GetSpectrumData method with which you can do just that: http://docs.unity3d.com/Documentation/ScriptReference/AudioListener.GetSpectrumData.html
Note that the YouTube clip you linked has seven different audio tracks in parallel, while Unity can only have one AudioListener at once, so you'd have to be clever about pre-recording/pre-processing your data if you wanted to achieve the exact same thing.
Your answer
![](https://koobas.hobune.stream/wayback/20220613085233im_/https://answers.unity.com/themes/thub/images/avi.jpg)