纳金网
标题:
让GUI循环切换显示隐藏状态
[打印本页]
作者:
会飞的鱼
时间:
2012-2-20 13:59
标题:
让GUI循环切换显示隐藏状态
一段实用的代码,比较特别的间隔计时器,让对象忽隐忽现。
if (Time.time % 2 < 1) {
if (GUI.Button (Rect (10,10,200,20), "Meet the flashing button")) {
print ("You clicked me!");
}
}
转自unity3d8.com
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5