Home Artists Posts Import Register

Downloads

Content

Please find the project files for this tutorial attached.

Any questions or issues please let us know.

Thanks

Files

Creating a Day/Night Cycle (Unity Tutorial)

In this Unity game development tutorial we're going to look at how we can create a simple day/night cycle in Unity. We'll start looking at how to control and display the time of day. Then we'll look at how to simulate the position and direction of the sunlight changing as the day progresses. Finally we'll look at how to transition between daytime and nighttime ambient light and how to add some moonlight at night. The project files are available to our patrons here: ► https://www.patreon.com/posts/57653315 Want to follow along? This project is a good starting point ► https://www.patreon.com/posts/56850268 The final script can be found here ► https://dotnetfiddle.net/7jfc0O Help support our work: ► Patreon: https://www.patreon.com/ketragames ► Ko-fi: https://ko-fi.com/ketragames Follow us: ► Ketra Games: http://www.ketra-games.com ► Patreon: https://www.patreon.com/ketragames ► Twitter: https://twitter.com/ketragames ► Facebook: https://facebook.com/ketragames Introduction - 0:00 Controlling and displaying the time of day - 0:24 Changing the direction of the sun - 5:10 Transitioning to nighttime lighting -13:13 Summary - 19:13 #KetraGames #LearnUnity #UnityTutorials #UnityTips

Comments

ketragames

It is possible, but unfortunately it's not that straightforward. To have it transition from a daytime skybox to a night time skybox, I think you'd have to create a custom skybox shader. Maybe one for a future video 😊

Anonymous

Thanks! and thank you for all the good tutorials you provide :)