Search Unity

Audio Change audio pitch

Discussion in 'Audio & Video' started by Tornado77, Nov 19, 2018.

  1. Tornado77

    Tornado77

    Joined:
    Nov 14, 2018
    Posts:
    83
    Hello, i want to change the audio source pitch when i press on W but i can't find any tutorial about this and the script i found on some thread are in Java so i have no idea what to do. Someone know how??
     
  2. leftshoe18

    leftshoe18

    Joined:
    Jul 29, 2017
    Posts:
    61
    Get a reference to your audio source and modify the "pitch" variable.
     
  3. Tornado77

    Tornado77

    Joined:
    Nov 14, 2018
    Posts:
    83
    Yeah i found how