Creating the audio source graph in custom editor
I am creating a custom editor for audio sources to extend some of the functionality available. I want to be able to edit attenuation curves in this custom script as well, exactly like it is done in the audio source component. I create audio sources through script, so it's not possible to use the default component's curve to do that. But I can't figure out how I can create an animation curve that will contain multiple curves and will also be fully visible in the inspector. The only thing I found so far is about one curve and you can to click on a small field in the inspector in order for the actual graph to pop up.
So basically, I need to find a way to create a graph editor in my custom script that will support multiple curves, and will be fully visible from the beginning without the need to expand it.
Can anybody help? Thank you in advance!
Your answer
Follow this Question
Related Questions
How can I represent the highpass filter with a curve like the lowpass filter? 0 Answers
I'm trying to do multiple AudioSources, but one won't play...... 0 Answers
Detecting when two different audio sources are emitting sound in Unity 0 Answers
background music manager not working correctly 1 Answer
How to play collision sounds with DOTS? 0 Answers