- Home /
Day Night cycle question
Hey guys. I have a GameTime script from BurgZergArcade. When I load a new level, I want the script and skybox not to change. For example, let's say I'm in a level and it's night. When I exit that level and go to the next, I want the day night cycle to start off where it was in the previous level. Do you have any suggestions? Thanks
Comment
Answer by Piflik · Sep 08, 2012 at 08:34 PM
If you want a certain object to be preserved on level-load, add the following script to that object:
function Awake() {
DontDestroyOnLoad (gameObject);
}
Your answer
Follow this Question
Related Questions
day/night cycle runs only twice 1 Answer
I can't get my script to work I get an error. [Please Help!] 0 Answers
How to make a Day/Night Cycle? 2 Answers
Photon Day Night Cycle Unsynced 1 Answer
Blend two lightmaps for day/night cycle? (terrain) 0 Answers