魔灵 发表于 2012-6-7 21:20

如何动态加载场景载入的进度条?

尤其放在手机中加载场景时。。!!   有没有动态加载关卡进度条的方法??{:soso_e132:}

月芽 发表于 2012-6-8 14:58

多线程 还有研究过

资源大湿 发表于 2012-6-8 15:18

网上记录的一段代码 还没有试过// Print on a guiText how much has been streamed level at index 1
//在文本框打印在场景1里下载了多少?
// When finished streaming, print "Level 1 has been fully streamed!"
//当完成时,打印"Level 1 has been fully streamed!"
var percentageLoaded : float = 0;

function Update() {
      if(Application.GetStreamProgressForLevel(1) == 1) {
                guiText.text = "Level at index 1 has been fully streamed!";
      } else {
                percentageLoaded = Application.GetStreamProgressForLevel(1) * 100;
                guiText.text = percentageLoaded.ToString();
      }
}

_____護° 发表于 2017-2-26 20:23

难得一见的好帖

itheimo 发表于 2017-2-26 20:28

说的非常好

killpause 发表于 2017-2-26 20:36

LZ真是人才

飞鸽 发表于 2017-2-26 20:40

很不错

melliana2024 发表于 2017-2-26 20:46

好帖就是要顶

啊奕猫 发表于 2017-4-30 14:22

顶顶多好

doccfanlee 发表于 2017-4-30 14:29

很好哦
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 如何动态加载场景载入的进度条?