x


Loading bar with visual bar

I no absolutely nothing on this part of unity, i now application.loadlevel and thats it! how do I put together a loading bar scene with a visible bar?

PLEASE ANSWER IN JAVA SCRIPT! I suck at C#!

more ▼

asked Jun 28 '10 at 12:32 PM

Jason Hamilton gravatar image

Jason Hamilton
445 68 73 80

visual bar,with a visible bar? hmm...

Jun 28 '10 at 01:02 PM AnaRhisT

ha ha ha very funny, Just trying to make myself as clear as possible.

Jun 28 '10 at 11:15 PM Jason Hamilton
(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

This section is for a time based progess bar: (Next section on more complicated synced system)

Check this post out for the Progress http://bar.It is Very helpful. Below I will show how to change level when the bar is loaded.

http://answers.unity3d.com/questions/328/how-do-i-make-a-progress-bar

Now I will show how to load level when the progress bar is done loading....

Add this in the Update function...

if(progress >= 1) { Application.LoadLevel "levelname"}


For a more syncronized one try this:

http://answers.unity3d.com/questions/6140/how-to-use-loadlevelasync-to-make-a-progress-bar

Hope this helps.

more ▼

answered Jun 28 '10 at 01:02 PM

MikezNesh gravatar image

MikezNesh
843 64 74 93

After adding this code drag a texture in for the code to use. Unfortunately the background matches the loading bar. So to get rid of the background bar, just comment out the first GUI.DrawTexture piece of code. This should make the background bar dissapear. Then you can add your own bakground bar image behind the loading bar to make it look nice.

Jun 28 '10 at 01:08 PM MikezNesh

How does this update the progress bar while the level is loading? It looks like it just counts up to 100% and then loads the level whereas what I want to do is show updating progress while loading the level. Am I missing something?

Jun 28 '10 at 01:57 PM Ben 2

The loading bar is just to give time for the level to load.... all games are like that ( I think). I'm not quite sure about actually updating when the level loads.... but giving time should be enough.

Jun 28 '10 at 02:27 PM MikezNesh

OH WAIT, found something of interest edited post.

Jun 28 '10 at 02:32 PM MikezNesh
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3569
x3418
x455
x107

asked: Jun 28 '10 at 12:32 PM

Seen: 11193 times

Last Updated: Jun 28 '10 at 12:32 PM