- Home /
How to make position change of gameobject trigger colour/pitch/volume change?
Hi, I'm currently building an audio visualiser which is going to be used through a metaglass for an AR project. The objective is to have the audio visualiser sit inside a decanter which makes sounds and the microphone capturing it will be reflected live to the visualiser. It is going to be used with an optitrack, so the position of the visualiser will change in space. I wanted to script (C#) which triggered change in colour of the visualiser and change in pitch/volume depending on the y position in space. I figured I should use transform.position.y command, but since I am new to coding I am not sure how to build this. Thanks in advance!
Comment