Application.streamedBytes 字节流

static var streamedBytes : 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 函数.

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();
}
Page last updated: 2010-12-15