Camera Fade In-Out in Unity

Ryan Sweigart
May 23, 2021

--

We’ve made some cool effects in Timeline. Let’s try another one: The classic fade in/out from/to black.

We begin by adding yet another Animation Track to the Timeline. Then we’ll create a simple black image that encompasses the entire screen. We’ll drag that image into the Animation Track and begin recording. First we set the image’s alpha color channel to 255. Then we position the keyframe at the point we want the fade-in to end, and set the image’s alpha to 0. (We could reverse the alpha — going from 0 to 255 — if we wanted to fade-out.)

The final effect is subtle, yet polished!

--

--

Ryan Sweigart
Ryan Sweigart

Written by Ryan Sweigart

An independent Unity Developer.

No responses yet