How to make a Day/Night Cycle?

The title explains it all, I am just looking for someone to tell me how this can be done or offer a tutorial. I have been looking through forums and other sources for weeks now wiht no results. Help would be greatly appreciated!

At first blush, I would say that it’s as simple as attaching a script to your light source, or if there are multiple ones, a common parent. Then, when an event is triggered (nightTime, dayTime, or sunRise, sunSet), you can change the variables of the light to reflect the changed condition.

If I’ve missed something obvious, forgive me, I’m a bit new to unity. Likewise, if you need further explanation or pseudocode, I’d be happy to oblige.

here is my video with a link to a beautiful day night cycle. the video shows how to set it up