|
How do I go about making a screen with a loading bar? I am using substancs all over the place and I would like it to be able to go from my main menu to a loading screen where it would load all the assets then take into game play?
(comments are locked)
|
|
Hello, I made this little script that should do the trick, first you have to create a new scene(HAS TO BE VERY SMALL), with GUI or whatever(I used GUI) and apply this script to the GUI: Trying to paste full code again : Srry, can't guarantee this to work, I got a very small scene to load so it loads immediatly. But I think this will work Good luck, Hybris Worked great thanks so much!!
May 02 '12 at 06:26 PM
Davidflynn
Why am I getting "Trying to Invoke method: LoadingScreen.Loadinglevel couldn't be called." :S
Jan 28 at 01:57 PM
robounited
As @Davidflynn never actually accepted this answer, I'm upvoting this answer ( also to reflect the kindness shown by Hybris in removing the negative vote from the question ). @robounited it looks like some of the code is missing (possibly due to UnityAnswers updates). If you read up on Invoke, you will see that Invoke("Loadinglevel", .5); is looking to call a function Loadinglevel, which would then I assume initializes the next scene. I have never done this so cannot help, but maybe David or Hybris can re-submit the code.
Jan 28 at 03:53 PM
alucardj
I'll see what I can do. Right now, I can't do anything. Indeed some of the code is missing and i'll update it as soon as possible.
Feb 01 at 06:16 AM
Hybris
It seems that I can't get it to work properly, the code doesnt want to show up, that's why the code will be right here: There it is. PS: I'm not sure if I should make this an answer or keep it a comment. For some reason it just won't work..
Feb 01 at 06:28 AM
Hybris
(comments are locked)
|
|
I don't what plugins you have access to, if any, but one very easy way to do this is to use the UIBtnLoadScene in the EZ GUI library. All you need to do is add this control to the game object that will trigger the new scene to load, and specify what panel to show while the new scene loads (game objects are initialized). I know this is a specialized solution since it uses the EZ GUI plugin, but I thought it was at least worth posting in case you currently use or are considering using EZ GUI.
(comments are locked)
|

Don't know who disliked this, but I liked it again...
Thanks not sure what would be wrong with the question.
me neither, well I posted an answer go check it out!