Search Unity

Question Change color on material with audio

Discussion in 'Audio & Video' started by zzero71, Nov 26, 2022.

  1. zzero71

    zzero71

    Joined:
    Mar 21, 2018
    Posts:
    1
    Hi, i was looking for a solution to a problem of using HZ or DB to check if the music gets to a "drop" (when the music gets to an high). I have been trying to get the value of hertz with AudioSource.GetSpectrumData but couldnt figure out how to exactly get it to work as i wanted.

    So the result i was looking for is when music gets to the "drop" the object will change color. If anyone has a suggestion on what to do i would really appricate it