I’m building a visualizer in Unity and I’ve hit a little bit of an issue.
My idea is to draw a line that corresponds to the spectrum, and keep a history of the lines to draw into a sort of “grid” behind it, building a mesh out of the lines that I have previously made.
Something like this (I know it’s not a music visualizer, but it illustrates my point well):
Just like this, I’d like to be able to have an array of “lines” and build them into a connected sequence.
I’m able to get a single line on-screen by using the
LineRenderer on my main camera, but I’m not entirely sure how to go about either
a) Making multiple
LineRenderers without making a huge mess out of the project
MeshRenderer to create a Mesh on the fly.
Any more information on choice
b would be the best, I would imagine. Is it possible to dynamically create meshes in this fashion (building from a list of vertices)?