文档

Unity Engine

Unity Engine

GetStreamProgressForLevel

How far has the download progressed? [0...1].
阅读时间1 分钟最后更新于 1 个月前

Definition

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

GetStreamProgressForLevel(int)

How far has the download progressed? [0...1].
警告
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].
警告
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.