Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


streamedBytes

How many bytes have we downloaded from the main unity web stream (Read Only).
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. Streaming was a Unity Web Player feature, and is removed. This property is deprecated and always returns 0.
public static int streamedBytes { get; }

Remarks

In the Web Player (obsolete now), this property returns the number of compressed bytes downloaded so far. It always returns zero.
Additional Resources: Application.GetStreamProgressForLevel function.
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.