docs.unity3d.com
    Show / Hide Table of Contents

    Class DOTweenModuleAudio

    Inheritance
    Object
    DOTweenModuleAudio
    Namespace: DG.Tweening
    Syntax
    public static class DOTweenModuleAudio

    Methods

    DOFade(AudioSource, Single, Single)

    Tweens an AudioSource's volume to the given value. Also stores the AudioSource as the tween's target so it can be used for filtered operations

    Declaration
    public static TweenerCore<float, float, FloatOptions> DOFade(this AudioSource target, float endValue, float duration)
    Parameters
    Type Name Description
    AudioSource target
    Single endValue

    The end value to reach (0 to 1)

    Single duration

    The duration of the tween

    Returns
    Type Description
    TweenerCore<Single, Single, FloatOptions>

    DOPitch(AudioSource, Single, Single)

    Tweens an AudioSource's pitch to the given value. Also stores the AudioSource as the tween's target so it can be used for filtered operations

    Declaration
    public static TweenerCore<float, float, FloatOptions> DOPitch(this AudioSource target, float endValue, float duration)
    Parameters
    Type Name Description
    AudioSource target
    Single endValue

    The end value to reach

    Single duration

    The duration of the tween

    Returns
    Type Description
    TweenerCore<Single, Single, FloatOptions>
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023