排列三2016历史开奖走势图:application.getstreamprogressforlevel 获取关卡的流进度

排列三2014079期正版藏机图 www.d0po.cn 2014-12-31 07:46| 发布者: 杨炎| 查看: 1895| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: application.getstreamprogressforlevel 获取关卡的流进度static functiongetstreamprogressforlevel(levelindex: int) : floatdescription描述how far has the download progressed? 下载的进度是多少?in the webp ...

application.getstreamprogressforlevel 获取关卡的流进度

static functiongetstreamprogressforlevel(levelindex: int) : float

description描述

how far has the download progressed? [0...1]

下载的进度是多少?

in the webplayer this returns the progress of this level.

在web播放器中这将返回这个关卡的进度。

参见:canstreamedlevelbeloaded函数.

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public float percentageloaded = 0;

void 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();

}

}

}

// 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();

}

}

o static functiongetstreamprogressforlevel(levelname: string) : float

description描述

how far has the download progressed? [0...1]

下载的进度是多少?

in the webplayer this returns the progress of this level.

在web播放器中这将返回这个关卡的进度。

参见:canstreamedlevelbeloaded函数

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public float percentageloaded = 0;

void update() {

if (application.getstreamprogressforlevel("level1") == 1)

guitext.text = "level 1 has been fully streamed!";

else {

percentageloaded = application.getstreamprogressforlevel("level1") * 100;

guitext.text = percentageloaded.tostring();

}

}

}

// print on a guitext how much has been streamed "level1"

//在文本框打印在场景"level1"里下载了多少?

// when finished streaming, print "level1 has been fully streamed!"

//当完成时,打印"level 1 has been fully streamed!"

var percentageloaded : float = 0;

function update() {

if(application.getstreamprogressforlevel("level1") == 1) {

guitext.text = "level 1 has been fully streamed!";

} else {

percentageloaded = application.getstreamprogressforlevel("level1") * 100;

guitext.text = percentageloaded.tostring();

}

}

相关阅读

文章点评
相关文章
  • 人民日报人民时评:前进的时代需要英雄 2019-06-18
  • 境外媒体:中国商务部严批美方“反复无常,挑起贸易战” 2019-06-16
  • 水银、煮沸的蚁巢、热熨斗:欧洲人的梅毒抗争史 2019-06-03
  • 咨询成果推介泸州长江生态湿地新城概念性规划 2019-06-03
  • 黄河口,大美之诗文章中国国家地理网 2019-05-30
  • 【人事】中共临汾市委组织部公示3名拟任职干部 2019-05-18
  • 习近平与人民日报那些事 2019-05-10
  • 很多常用药同属一家族 2019-04-30
  • 小牛犊天生两条腿 走起路来像袋鼠 2019-04-30
  • 就因为“阶级亲”,才应把这些难民送到欧洲。欧洲生活水平高呀,让亲人生活的更好。不能让他们到中国受苦受难呀。 2019-04-27
  • 资管新规来了!打破刚兑  投资者怎么办? 2019-04-27
  • 紫光阁中共中央国家机关工作委员会 2019-04-24
  • 图解:习近平主席这12个金句振奋人心! 2019-04-24
  • 您访问的页面找不回来了 2019-04-07
  • 五莲科技局以“三大”助力动能转换 2019-04-07
  • 804| 983| 875| 779| 888| 599| 587| 801| 593| 943|