- Home /
Reload level without moving camera
Is there a way to reload the level without changing the camera position.
I am using Application.loadLevel(Application.LoadedLevel)
Any help would be great thanks.
Answer by TheDarkVoid · May 10, 2014 at 07:46 PM
you can use DontDestroyOnLoad to make sure the the camera isn't affected by level loads, you will need to manually get rid of the camera when you need to using Destroy and you need to take care of duplicate camera's if there is a camera in the scene when you load it. Another way is to save the camera's position and other info to PlayerPrefs and then load it and set the camera's position in the Start function.
Thank you, I will test it out and let you know how it goes!
Your answer
Follow this Question
Related Questions
Application.loadlevel 2 Answers
Gun - Ammo , reloading and UI problem. 1 Answer
Enemy AI Reloading Problem, they reload with queue 0 Answers
Reloading A Gun My Way 2 Answers
Prefabs missing on reload 0 Answers