iTween.AudioTo C# (CSharp) Method

AudioTo() public static method

Fades volume and pitch of an AudioSource with FULL customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied.
public static AudioTo ( GameObject target, Hashtable args ) : void
target GameObject
args Hashtable
return void
    public static void AudioTo(GameObject target, Hashtable args)
    {
        //clean args:
        args = iTween.CleanArgs(args);

        //set a default easeType of linear if none is supplied since eased audio interpolation is nearly unrecognizable:
        if (!args.Contains("easetype")) {
            args.Add("easetype",EaseType.linear);
        }

        //establish iTween:
        args["type"]="audio";
        args["method"]="to";
        Launch(target,args);
    }

Same methods

iTween::AudioTo ( GameObject target, float volume, float pitch, float time ) : void
iTween