从主 Unity Web 流下载的字节数(只读)。
In the Web Player (obsolete now), this property returns the number of compressed bytes downloaded so far. It always returns zero.
另请参阅:GetStreamProgressForLevel 函数。
using UnityEngine; using UnityEngine.UI;
class Example : MonoBehaviour { Text byteDisplay; void Start() { byteDisplay = GetComponent<Text>(); }
// Prints to a Text UI how many bytes we have streamed. void Update() { byteDisplay.text = "Streamed Bytes: " + Application.streamedBytes.ToString(); } }
From Unity version 5.4.0 onwards, webplayer support was discontinued.