getting Progress percentage of the level being loaded

i want to display progress of the scene being loaded in my proj while its loading the level

i my code i have loaded the level by script
Application.LoadLevel (1);

i am using the script
per = Application.GetStreamProgressForLevel(1);

per will give the percentage value of the level loaded

but i am getting 1 only as o/p

in unity scripting manual
its given that it will give float as o/p betwn [0…1]

can i get thr any way the % of the level loaded

i am using c# script

plz reply

thanks

Hello :slight_smile:

maybe it loads so fast that you see 1 immediately?

How are you testing it? locally?, try to put your project on a server and check the value :wink:

I have uploaded the file on the IIs Server then also its showing 1 % only

is there any other method thr which i can get the % of level loaded

plz reply

thanks

i have builded my whole proj consisting of both the levels as webplayer options in build settings not webplayer streamed

i have not separately builded then, is that may be the prob

plz reply thanks

You do need to select the “web player streamed” option to get correct streaming behaviour. Try this, but post again if you are still having problems.

@manohar_003: please don’t post the same question multiple times. You’re already asking for help on the exact same problem in another thread (one in which I’m trying to help already).

This thread will now get locked, everyone that wants to help can do so here:

progress bar of the level in scene loaded