# Ue4 directional light not replicate different times of day for client and server

**URL:** <https://forums.unrealengine.com/t/ue4-directional-light-not-replicate-different-times-of-day-for-client-and-server/460447>\
**Category:** Rendering\
**Tags:** unreal-engine, directional-light, day-night-cycle, UE4, question, replicating\
**Created:** [January 11, 2020, 8:34pm UTC](https://forums.unrealengine.com/t/ue4-directional-light-not-replicate-different-times-of-day-for-client-and-server/460447 "2020-01-11T20:34:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TuxTheAstronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuxtheastronaut/32/1123667_2.png) [@TuxTheAstronaut](https://forums.unrealengine.com/u/TuxTheAstronaut)\
**Post date:** [January 11, 2020, 8:34pm UTC](https://forums.unrealengine.com/t/ue4-directional-light-not-replicate-different-times-of-day-for-client-and-server/460447/1 "2020-01-11T20:34:30Z")

</div>

So I’m making a day night cycling but the directional light is not replicate its rotating so if the client joins the game and it’s night on the server it will be day for the client dose anyone know how to replicate the suns rotating of multiplayer

---

<div class="post-metadata">

**Author:** ![Blakewj](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blakewj/32/88717_2.png) [@Blakewj](https://forums.unrealengine.com/u/Blakewj)\
**Post date:** [August 3, 2020, 2:32pm UTC](https://forums.unrealengine.com/t/ue4-directional-light-not-replicate-different-times-of-day-for-client-and-server/460447/2 "2020-08-03T14:32:42Z")

</div>

Bump this,

I am facing the same issue.

---

<div class="post-metadata">

**Author:** ![RianeN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RianeN](https://forums.unrealengine.com/u/RianeN)\
**Post date:** [July 7, 2023, 7:04pm UTC](https://forums.unrealengine.com/t/ue4-directional-light-not-replicate-different-times-of-day-for-client-and-server/460447/3 "2023-07-07T19:04:54Z")

</div>

I might be late to this, but I was facing this problem and realized a directional light does not appear to replicate by default, which is weird. When I manually set it to replicate, it fixed the issue.

I have a simple empty actor in the world that manages the sun/environment replication behaviors.

 ![problem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/4/d34cd06f364e7b4dcf2c583c89a20802e3a82881.png)

---

<div class="post-metadata">

**Author:** ![moha\_mine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@moha\_mine](https://forums.unrealengine.com/u/moha_mine)\
**Post date:** [July 17, 2024, 10:59am UTC](https://forums.unrealengine.com/t/ue4-directional-light-not-replicate-different-times-of-day-for-client-and-server/460447/4 "2024-07-17T10:59:48Z")

</div>

Do you call ServerSetSunRotation each time you change the rotation?

---

<div class="post-metadata">

**Author:** ![Stolcjan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stolcjan/32/1213449_2.png) [@Stolcjan](https://forums.unrealengine.com/u/Stolcjan)\
**Post date:** [June 15, 2026, 8:45pm UTC](https://forums.unrealengine.com/t/ue4-directional-light-not-replicate-different-times-of-day-for-client-and-server/460447/5 "2026-06-15T20:45:10Z")

</div>

I had to think about this for a while, but in my case, I don’t replicate the Directional Light itself. Instead, I only replicate a variable called `Progress`, which is controlled by the host. That variable is then replicated to all clients, and each client locally updates the Directional Light’s position based on the replicated `Progress` value.

In my case, this approach works—and it works well.
