If you have played any Blizzard game, you should know what a button/skill cooldown effect is. In this tutorial I will walk you through a very simple technique to achieve the effect in Unity with the help of ex2D and "Depth Mask" shader from pixelplacement.
About ex2D:
ex2D is a simple and powerful Unity extension that provides 2D sprite workflow in Unity standards. Check out the ex2D website for more information:
http://www.ex-dev.com/ex2d/
Depth Mask shader:
I learned it from a blog post by pixelplacement (the author of iTween). In this post he provided the shader code and a sample project showing the effect. Here's the link to the blog post:
http://pixelplacement.com/2011/02/15/masking-in-unity/
I hope you enjoy the tutorial. Visit our website for more Unity and indie game development information:
http://abitgames.com
Dude from where do we get the assests
virajaher101099 1 week ago