# Update time on sun and sky actor

**URL:** <https://forums.unrealengine.com/t/update-time-on-sun-and-sky-actor/486181>\
**Category:** XR Development\
**Tags:** sun, unreal-engine, question\
**Created:** [July 14, 2021, 12:34pm UTC](https://forums.unrealengine.com/t/update-time-on-sun-and-sky-actor/486181 "2021-07-14T12:34:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [July 14, 2021, 12:34pm UTC](https://forums.unrealengine.com/t/update-time-on-sun-and-sky-actor/486181/1 "2021-07-14T12:34:29Z")

</div>

Hi all, I have placed a Skysun actor in my scene.

I have 2 arrow actors in my level and on hover I will update the suntime.  
I have setup a level BP, but it isn’t working right now…  
I want to set dynamically the suntime between 6 and 12, and back when hovering the other arrow.

What did I do wrong?  
Thanks in advance!  
alt text!

---

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [July 14, 2021, 5:49pm UTC](https://forums.unrealengine.com/t/update-time-on-sun-and-sky-actor/486181/2 "2021-07-14T17:49:13Z")

</div>

I updated the BP like in the attached image.

It still doesn’t work and produces errors while playing in VR

 ![344091-error.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/4/fe4a4ec5517c1e156c2698d2b79064238800abb4.jpeg)

---

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [July 14, 2021, 6:00pm UTC](https://forums.unrealengine.com/t/update-time-on-sun-and-sky-actor/486181/3 "2021-07-14T18:00:42Z")

</div>

I checked a youtube video to do so, but see in my project that I have a SunSky actor (with the lights and environment in it) but the BP sun position is only the star-shape and no lights. I guess that’s the reason it won’t work and spits out all the errors?

How can I change the suntimes in the sunsky actor?

---

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [July 15, 2021, 1:40pm UTC](https://forums.unrealengine.com/t/update-time-on-sun-and-sky-actor/486181/4 "2021-07-15T13:40:53Z")

</div>

I did some things wrong and reset it up. It doesn’t give me the errors anymore. Now it’s partially working. Feeding the solar time with increments of -0,1 and 0,1 works, but way to fast. It flips through the sunpositions in just 2 seconds.

Also, I have to put my laserbeam long at an arrow to make it happen. Just for about 12 seconds and the the sun positioning starts happening (too fast indeed).

I guess I have to set an initial solartime at begin play and have to tweak the settings of increments…  
But how can I setup this the best way?
