¿Qué tanto ha progresado la descarga? [0...1].
En el webplayer esto devuelve el progreso de este nivel.
See Also: Función CanStreamedLevelBeLoaded.
// Print on a guiText how much has been streamed level at index 1 // When finished streaming, print "Level 1 has been fully streamed!" var percentageLoaded : float = 0; var guiText: GUIText; function Start() { guiText = GetComponent.<GUIText>(); } function Update() { if(Application.GetStreamProgressForLevel(1) == 1) { guiText.text = "Level at index 1 has been fully streamed!"; } else { percentageLoaded = Application.GetStreamProgressForLevel(1) * 100; guiText.text = percentageLoaded.ToString(); } }
no example available in C#
¿Qué tanto ha progresado la descarga? [0...1].
En el webplayer esto devuelve el progreso de este nivel.
See Also: Función CanStreamedLevelBeLoaded.