Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStreamProgressForLevel

How far has the download progressed? [0...1].
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

GetStreamProgressForLevel(int)

How far has the download progressed? [0...1].
Warning
Deprecated. Streaming was a Unity Web Player feature, and is removed. This function is deprecated and always returns 1.0 for valid level indices.
public static float GetStreamProgressForLevel(int levelIndex)

Parameters

levelIndex

Returns

Type

Description

float

Remarks

In the webplayer this returns the progress of this level.
Additional Resources: Application.CanStreamedLevelBeLoaded function.
Webplayer support is not part of 5.4.0 and later.

GetStreamProgressForLevel(string)

How far has the download progressed? [0...1].
Warning
Deprecated. Streaming was a Unity Web Player feature, and is removed. This function is deprecated and always returns 1.0.
public static float GetStreamProgressForLevel(string levelName)

Parameters

levelName

Returns

Type

Description

float

Remarks

In the webplayer this returns the progress of this level.
Additional Resources: Application.CanStreamedLevelBeLoaded function.
Webplayer support is not part of 5.4.0 and later.