ドキュメント

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.