Creating a Day/Night Cycle (Unity Tutorial)

Published: 21 October 2021
on channel: Ketra Games
43,642
1.3k

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:
►   / 57653315  

Want to follow along? This project is a good starting point
►   / 56850268  

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

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

Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon:   / ketragames  
► Twitter:   / ketragames  
► Facebook:   / 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


Watch video Creating a Day/Night Cycle (Unity Tutorial) online, duration hours minute second in high quality that is uploaded to the channel Ketra Games 21 October 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 43,642 times and liked it 1.3 thousand visitors.