找回密碼
 注冊帳號

掃一掃,訪問微社區

application.streamedbytes 字節流

2014-12-31 09:41| 發布者: 楊炎| 查看: 1642| 評論: 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();

}

相關閱讀

文章點評
相關文章
女校游泳队彩金