unity3d___UGui中如何创建loading...进度条

http://blog.sina.com.cn/s/blog_e82e8c390102wh2z.html

实现方法:通过Image组件中Image Type属性中Fill Amount,通过代码改变Fill Amount的值就可以实现进度条效果
 
首先在Hierarchy中创建UI>Image,调整Image Type为Filled,Fill Method为Horizontal,拉动Fill Amount查看图片效果
 
unity3d___UGui中如何创建loading...进度条
 
代码篇:

unity3d___UGui中如何创建loading...进度条

原文地址:https://www.cnblogs.com/alps/p/7795946.html