Audio Fade In/Fade Out

The Fade In/Fade Out behavior automates fading in and out an audio track. Adjust this behavior using the controls in the Behaviors Inspector:

  • Fade In Time: A slider that sets the number of frames over which the audio fades in, from –96 dB to 0 dB. A duration of 0 frames leaves the beginning of the audio track unmodified.

  • Fade Out Time: A slider that sets the number of frames over which the audio fades, out from 0 dB to –96 dB. A duration of 0 frames leaves the end of the audio track unmodified.

  • Start Offset: A slider that sets the number of frames from the beginning of the audio track after which the volume animation starts. Adjust this parameter to make the behavior start after the beginning of the audio track.

  • End Offset: A slider that sets the number of frames from the end of the audio before which the animation stops. Adjust this parameter to make the behavior end before the end of the audio track.

The Audio Fade In/Fade Out behavior has a custom graphical control in the HUD. Drag the beginning or end of the graph to modify the Fade In Time and Fade Out Time parameters:

HUD showing Audio Fade In/Fade Out behavior controls

Note: The HUD control for the Audio Fade In/Fade Out HUD behavior is identical to that of the Fade In/Fade Out behavior (in the Basic Motion category of behaviors).