easygame 发表于 2012-12-27 22:52

一个环形血条实现遮罩的教程

找了一些资料,发现U3D自己是没有提供这个功能。只能通过Shader来实现。在Transparent里有个Mask。。不知道能不能用,还有待调研,因为对Shader不熟。
在网上有找到一个Demo。http://pixelplacement.com/2011/02/15/masking-in-unity/这个应该是原地址了,国内的都是转载的。
我试了一下,效果图如下:打了一个圆的洞,和方的洞。
看一个环形血条的遮罩实现:http://answers.unity3d.com/questions/14770/creating-a-circular-progressbar-timer.html

jerry6084 发表于 2013-5-3 11:52


不错 不错 不错{:soso__3922851084632044791_6:}

talent 发表于 2017-4-7 22:19

很不错

引兔那么写 发表于 2017-4-7 22:03

楼主是超人

zhangyshun 发表于 2017-4-7 21:51

难得一见的好帖

ghxx2016 发表于 2017-4-7 21:51

很好哦

yezhinet 发表于 2017-4-7 21:56

不错不错

wslxj928 发表于 2017-4-20 08:40

很不错

dingjie23 发表于 2017-4-20 08:51

好帖就是要顶

guba_game 发表于 2017-4-20 08:28

难得一见的好帖
页: [1]
查看完整版本: 一个环形血条实现遮罩的教程