|
Hi, I have a qeustion, I want to make a loading screen, somthing that says "Loading". but i dont want to have to make a new scene per level. basicly, if a level is loading, can i make it spawn a GUI everytime its loading somthing. i know this is very hard to explain but i need a little help.
(comments are locked)
|
|
Sure, here is a script I created. It acts like a singleton, and you can easily set it up in your first scene. Just give it a texture and you are all set. You can use it like LoadingScreen.Load(levelIndex); and it will show the texture on screen. i dont think it worked. mabey its because i dont have much to load. idk. thanks anyways :D
Jan 12 '11 at 04:27 PM
Colin Allen
Does it give an error message? Did you set a texture to use?
Jan 12 '11 at 04:39 PM
Statement ♦♦
I'm looking for something similar and I came across this script and I've been trying to get it to work. I could be wrong about this, but shouldn't the NoInstance() function be called as:
Otherwise when the instance does exist, NoInstance() will true and the Load function will exit without actually loading the scene.
Mar 03 '11 at 03:51 PM
Matt Carver
I tried it, and while it's loading my stuff just fine with no error messages, it's stil not showing the image that I set as my loading image. The script is attached to a GameObject with the same transform as the camera in my initial scene, and the transform of the GameObject has no effect on what shows up. FTR, I'm using this in conjunction with NGUI.
Dec 07 '12 at 03:00 AM
MachCUBED
Statement, how to use your script? It doesn't show an image when loading
Jan 23 at 10:00 AM
Websfera.pl
(comments are locked)
|
|
I found out to do loading screen is so easy after I implemented myself. Here is to share with everyone: Would you attach this to the main camera?
Apr 16 '12 at 06:21 PM
TheFrankman123
also i'm getting unknown identifier GameData
Apr 16 '12 at 06:31 PM
TheFrankman123
How would this work you never set loading_on to true. Wouldn't you need
Aug 18 '12 at 06:13 PM
landon91235
You may attach this to any camera, I have mine attached to an object. When someone clicks on the object, I turn loading_on=true; Then my loading screen is activated. The GameData is just a placeholder, you must adjust the GUI.matrix to whatever size you want. GUI.matrix translates, scales, and rotates your loading screen. This loading screen is working really good if you want something simple, thanks for sharing!
Dec 19 '12 at 04:31 PM
st362
(comments are locked)
|

this script not work
hello so i am new to unity and i do not understand where to put the loading scene script can anybody help me i know I'm asking this and its a stupid question but nobody really explained where to put it
@pitso: This is not an answer to the question! Use comments is you have a short question about a specific post. If you have a real question, post a question-