Basic Day Night Cycle

This is kind of a hefty code to be using this early on in Unity development, but as a fan of scheduled games and simulation style games, day/night cycles are some of the best things out there. The page itself does point out how there are better, more immersive ways to do this (such as manually editing skybox materials in relation to time passing), but this script needs only be attached to an object and pretty much handles all the work itself! Instructions are within the script to make it your own, so it should be easy to add on to even the simplest of games for a bit of immersion.

(more…)