Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Audio How do I change the pitch of an AudioMixer?

Discussion in 'Audio & Video' started by Luccathegreat, May 24, 2022.

  1. Luccathegreat

    Luccathegreat

    Joined:
    Apr 30, 2022
    Posts:
    26
    Ive tried this from another post:
    upload_2022-5-24_8-36-21.png

    but when I apply this, it doesn't work, anyone know what I did wrong?
    upload_2022-5-24_8-36-12.png
     
  2. JLF

    JLF

    Joined:
    Feb 25, 2013
    Posts:
    137
    I think that the problem is you're using GetFloat instead of SetFloat.

    Get Float wants you to use the out keyword so that you can data from the exposed parameter, but you're trying to set it right?
     
  3. Luccathegreat

    Luccathegreat

    Joined:
    Apr 30, 2022
    Posts:
    26
    Oh I didn't notice that, thanks