Timeline Unity: Adding a Fading Effect

Objective: Add a fading from a black screen to Alpha

Fading from Black to Alpha

The first thing to do is create a UI Image Element. Strech it to cover the whole screen. Change color to black. Note: make sure the Canvas object is set to scale with screen size.

Create UI Image

Next, I will add an Animation Track to the Timeline and add the UI Image to the Track.

adding Animation Track for Image

Now I will create the animation from Black to Alpha. I click on the Record Button, move the Marker to the half-second mark, then select the UI Image object and slide the Alpha channel to zero. Click the Record Button to stop recording.

Let's see the Fading in Action.

Fading In Demo

Happy Codding!!!!!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store