December 2012

Screen Fade

A simple, static solution for fading the screen in Unity. This solution fires off three events during its operation: OnFadeBegin, OnFadeUpdate and OnFadeEnd and you can easily hook onto these to respond to the status of the fade. There’s also a hand property called IsFadingUp which is convenient for checking when a fade is complete to execute some clean up logic if you are fading scenes and then easily fire off a fade down. I’ve also included a few handy overloads in the public interface to add flexibility so take a look at the comments when you are using this solution. The example project below is included in the package and, as always, let me know if there are any problems or suggestions.

Read more →