level loading ..!

with javascript, when using the function

Application.GetStreamProgressForLevel();

to loading a level…
How can I appear loading progress as percentage text?

Here’s a Progress bar loader script I modified to show numerical value for the % of loading done… Should be able to easily use some of it for your purposes.

var progress : float = 0;
var percent : int = 100;
var pos : Vector2 = new Vector2(20,40);
var size : Vector2 = new Vector2(60,20);
var progressBarEmpty : Texture2D;
var progressBarFull : Texture2D;

function OnGUI()
{
if(progress<1){
    GUI.DrawTexture(Rect(pos.x, pos.y, size.x, size.y), progressBarEmpty);
    GUI.DrawTexture(Rect(pos.x, pos.y, size.x * Mathf.Clamp01(progress), size.y), progressBarFull);
	GUI.Label(Rect(50,90,100,20),("% "+(Mathf.Clamp01(progress)*percent).ToString("0.0")));
} 
} 

function Update()
{
    progress = Time.time * 0.05;
}