Creating a Day/Night Cycle (Unity Tutorial) @KetraGames
Creating a Day/Night Cycle (Unity Tutorial)  @KetraGames
Uploaded October 2021 | Updated September 2026, 2 weeks ago
In this Unity game development tutorial we're going to look at how we can create a simple day/night cycle.

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:
patreon.com/posts/57653315

Want to follow along? This project is a good starting point
patreon.com/posts/56850268

The final script can be found here
dotnetfiddle.net/7jfc0O

Help support our work:
► Patreon: patreon.com/ketragames
► Ko-fi: ko-fi.com/ketragames

Follow us:
► Ketra Games: ketra-games.com
► Patreon: patreon.com/ketragames
► Twitter: twitter.com/ketragames
► Facebook: 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
Creating a Day/Night Cycle (Unity Tutorial)Unlock the Secrets of Unity Lighting! 💡Master Realtime, Baked, and Mixed LightingUnity 2D Top Down Shooter for BeginnersDetecting Screen Bounds (Unity Tutorial | 2D Top Down Shooter)Getting Started with Character Animation Using Mixamo (Unity Tutorial)How to Use Lerp (Unity Tutorial)Unity Essentials: Simple Step-by-Step Main Menu CreationDont Lose Your Work (Unity Tutorial)Add Random Bored Idle Animations to Your Character (Unity Tutorial)Use Scriptable Objects to Improve Your Game!Fixing Slope Bounce (Unity Tutorial)2D Top Down Player Movement Using the New Input System (Unity Tutorial | 2D Top Down Shooter)
Ketra Games |

Creating a Day/Night Cycle (Unity Tutorial)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER