I have a 2D game with 30 levels. Each level is a new scene. Currently, when you finish a level, it just switches to the new scene view. I would like to make this transition a little more interesting.
Is there an easy way to fade out the current scene and fade in the new scene?
Thanks,
Chris
Did you try googling that? Because I did and I got a page full of answers. What have you tried, and what didn’t work?
1 Like
Thanks so much. I feel dumb. I tried searching the forum, but didn’t see what I needed. I didn’t try google. Stupid. Those links look perfect. Thanks!
2 Likes
What I do is take a single black pixel image, add it as a raw image to your scene’s UI, and set the anchor points to all 4 corners so it stretches to match the resolution. Then write a script which adjusts the alpha value over time. So fade out increases alpha to maximum using a lerp, when it finishes you then trigger the scene change. Fade in does the opposite, starting at max alpha and bringing it down to clear. Optionally disable the image GameObject when not in use to get it out of the way.