Fade In/Fade Out

The Fade In/Fade Out behavior lets you dissolve into and out of any object by ramping the opacity of the object from 0 percent to 100 percent at the start, and then back to 0 percent at the end. You can eliminate the fade-in or fade-out effect by setting the duration of the Fade In Time or Fade Out Time to 0 frames.

Note: This behavior is multiplicative. This means that the Fade In and Fade Out parameters are multiplied by the object’s current opacity to produce the resulting level of transparency.

The Fade In/Fade Out behavior is useful for introducing and removing animated elements. For example, you can apply the Fade In/Fade Out behavior to text that moves across the screen to make it fade into existence, and then fade away at the end of its duration.

Note: The Fade In/Fade Out behavior cannot be applied to a camera or light.

Adjust this behavior using the controls in the Behaviors Inspector:

The HUD lets you set the Fade In and Fade Out durations with a graphical control. Drag anywhere in the shaded area of the Fade In or the Fade Out ramp to adjust the duration of the effect.

Note: Continue dragging beyond the limits of the graphical HUD control to extend the durations of the Fade In or Fade Out.

HUD showing special controls for Fade In/Fade Out behavior