# help about day/night cycle.

**URL:** <https://forums.unrealengine.com/t/help-about-day-night-cycle/631673>\
**Category:** Rendering\
**Tags:** building-lighting, Lights, unreal-engine, UE4-27, question\
**Created:** [August 19, 2022, 10:18am UTC](https://forums.unrealengine.com/t/help-about-day-night-cycle/631673 "2022-08-19T10:18:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnVelma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnVelma](https://forums.unrealengine.com/u/JohnVelma)\
**Post date:** [August 19, 2022, 10:18am UTC](https://forums.unrealengine.com/t/help-about-day-night-cycle/631673/1 "2022-08-19T10:18:12Z")

</div>

from this tutorial. [UE4 Tutorial: Day/Night Cycle (w/ Clock and Moon) (Request) - YouTube](https://youtu.be/x3xBtPIVWEs) I would like to set a clear time limit. How many minutes during the day will it turn into night? and how many minutes at night to change to day What should I do?

Level Blueprint

 ![event land scape blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/f/32f2385c7f186696472830f771159e7812b49eaf.png)

Day and Night

 ![day](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/b/91be5c1bfb64a0c5a00a009c3f5d1589a9d4f54e.png)  
 ![night](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/4/e14a308835979c5f8fc5de698d84d7b6c2e80be3.png)

Clock

 ![clock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/7/717baad3401ac0ed555593264f628db318e2254f.png)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [August 19, 2022, 10:38am UTC](https://forums.unrealengine.com/t/help-about-day-night-cycle/631673/2 "2022-08-19T10:38:57Z")

</div>

Hey @JohnVelma! Welcome to the Forums!

When you say,

> [@JohnVelma](#):
>
> I would like to set a clear time limit. How many minutes during the day will it turn into night? and how many minutes at night to change to day What should I do?

what do you mean by that?

- Are you trying to set the speed at which the sun rotates?
- Are you looking for more realistic time?
- Or are you trying to change how the clock increments?

It is hard to tell what you are trying to accomplish here.

If you are looking for realistic time I suggest also taking a look at the Sun Position Calculator built into Unreal. Here is a video that does something extremely similar using the SPC:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/f/93fff6db8ebbd0a802f0bfcee9784c82f332e7d8.jpeg "Sun Position Driven by UI | Tips & Tricks | Unreal Engine") ](https://www.youtube.com/watch?v=_Sdm_gsbaos)

Any additional specifics and information you can provide will go a very long way in solving your problem!

---

<div class="post-metadata">

**Author:** ![JohnVelma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnVelma](https://forums.unrealengine.com/u/JohnVelma)\
**Post date:** [August 19, 2022, 12:22pm UTC](https://forums.unrealengine.com/t/help-about-day-night-cycle/631673/4 "2022-08-19T12:22:39Z")

</div>

For example, when the game starts It’s daytime. And the time during the day is 3 minutes. After 3 minutes has passed, it becomes night. And at night, there will be 7 minutes to turn into day. I had to make the time during the day shorter than at night. and keep looping like this, like a Day/Night cycle.

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [August 22, 2022, 9:39am UTC](https://forums.unrealengine.com/t/help-about-day-night-cycle/631673/5 "2022-08-22T09:39:16Z")

</div>

Hey @JohnVelma!

Sounds like you need Timelines. You can set up a Timelines for you day cycle and night cycle that loop into each other, or even one timeline that handles both if you set up your curve correctly. Check out the Unreal documentation here:

> **[Timelines](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Timelines/)**
>
> An Overview of Timelines in Unreal

I hope the above provides the solution you need!

---

<div class="post-metadata">

**Author:** ![Zenahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zenahr](https://forums.unrealengine.com/u/Zenahr)\
**Post date:** [November 20, 2022, 5:55pm UTC](https://forums.unrealengine.com/t/help-about-day-night-cycle/631673/6 "2022-11-20T17:55:24Z")

</div>

wow, such a great plugin! I really hope Epic Games starts documenting their various plugins in a more structured way.
