Function fade

  • Fade a currently playing sound between two volumee.

    Parameters

    • sound_name: string

      audio clip name - case sensitive

    • from: number

      Volume to fade from (0.0 to 1.0).

    • to: number

      Volume to fade to (0.0 to 1.0).

    • duration: number

      Time in milliseconds to fade.

    • Optionalid: number

      the sound instance ID. If none is passed, all sounds in group will fade.

    Returns void