- Home /
Question by
kyojuceles · Jun 08, 2011 at 09:20 AM ·
application
About Application.LoadLevel()
Hi.
I have a question about LoadLevel method.
The project is built to application.
Window is moved to initial position when Application.LoadLevel is called.
I don't want it. How can i do it?
Comment
Answer by Tom 17 · Jun 08, 2011 at 09:49 AM
When loading a new level all game objects that have been loaded before are destroyed. If you want to let an object survive when loading a new level, use Object.DontDestroyOnLoad.
If you mean the application window itself, I never noticed that happening..
[1]: http://unity3d.com/support/documentation/ScriptReference/Application.LoadLevel.html