Unit NGUI 异步加载及加载动画问题

 
在一个场景中执行异步加载:

AsyncOperation async;

 IEnumerator asyncLoading(string loading){

async=Application.LoadLevelAsync(loading);

yield return async;

}

特殊状态:主线程Update,“停滞”,Time.deltaTime 无限小;yield return new WaitForSeconds(float) 无用;NGUI UISpriteAnimation无法正常播放图片集;

 

解决方案:“进度条”样式 

UISlider.fillAmount 为

async.progress:0~1f;

posted @ 2013-03-11 13:41  韦斯利yx  阅读(738)  评论(0编辑  收藏  举报