Search Unity

Question Working with audio source log graphs via script

Discussion in 'Audio & Video' started by oliver_unity892, Dec 11, 2020.

  1. oliver_unity892

    oliver_unity892

    Joined:
    Oct 28, 2019
    Posts:
    91
    Hi all

    I want to change the curve of the log graph of an audio source via a script.

    I can see that I'm able to import an animation curve in to the audio source custom curve, though I can't find any examples about exactly how to go about that.

    However, is it possible to just adjust the nodes of the audio source graph via script? Really I only want to edit a few nodes on the graph for every sample played through this one script.

    Is that possible? Or is there a way to copy the graph from one audiosource, as though it were a template, to each source played via script?

    Olly