
This tutorial shows how to extend the class SpriteRenderer
to support intuitive, painless fading transitions. Despite referring to sprites, this approach can be used to easily animate any property of a game object in Unity.
- Introduction
- Step 1. Extending the SpriteRenderer
- Step 2. The Coroutine
- Step 3. Invoking the Coroutine
- Step 4. The Callback
- Conclusion
The link for the script used in this tutorial is at the end of the post.