メインの 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.