/// use the Generator's mMixer to adjust any global effects variables /// See the AudioSource properties in the Unity manual for details and sensible values: https://docs.unity3d.com/Manual/class-AudioSource.html /// See comments for MusicGenerator::SetGlobalEffect() for min/max values and mixer's effects names: public void AdjustGlobalDistortion(Slider sliderIN) { mMusicGenerator.mGeneratorData.mDistortion.Second = sliderIN.value; mMusicGenerator.SetGlobalEffect(mMusicGenerator.mGeneratorData.mDistortion); }