A small side project where I wanted to experiment with sound visualization in Unity. It exists of two parts: a wave form visualization and a VFX Graph effect visualization.
The wave form visualization is quite simple. Just scale up some cubes using sampling data from the playing audio file.
You can get the sampling data with GetData();, which returns volume data. There’s also GetSpectrumData(); which will return the range of frequencies being played at a certain position in the sound file, but my target was simply volume.
The related VFX Graph:
To make the VFX Graph react to the sound, I inject retrieved volume data into the “Distortion” property of the VFX Graph