找回密码
 注册帐号

扫一扫,访问微社区

application.streamedbytes 字节流

2014-12-31 09:41| 发布者: 杨炎| 查看: 1674| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: application.streamedbytes 字节流static varstreamedbytes: intdescription描述how many bytes have we downloaded from the main unity web stream (read only).我们从主unity网页流中下载了多少字节(只读)。in ...

application.streamedbytes 字节流

static varstreamedbytes: int

description描述

how many bytes have we downloaded from the main unity web stream (read only).

我们从主unity网页流中下载了多少字节(只读)。

in the webplayer this returns the number of compressed bytes downloaded so far. in standalone player or the editor this always returns zero.

在web播放器中这将返回到目前为止已经下载的压缩字节数。在独立模式或编辑器中总是返回零。

参见:getstreamprogressforlevel函数.

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

guitext.text = "streamed bytes: " + application.streamedbytes.tostring();

}

}

// prints to a guitext how many bytes we have streamed.

//输出到一个节界面文本,显示加载了多少字节流

function update() {

guitext.text = "streamed bytes: " + application.streamedbytes.tostring();

}

相关阅读

文章点评
相关文章