# Update Skylight

**URL:** <https://forums.unrealengine.com/t/update-skylight/295425>\
**Category:** Rendering\
**Tags:** skylight, while-loop, unreal-engine, update, Blueprint, question\
**Created:** [October 6, 2014, 5:33pm UTC](https://forums.unrealengine.com/t/update-skylight/295425 "2014-10-06T17:33:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_416b781b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_416b781b](https://forums.unrealengine.com/u/anonymous_user_416b781b)\
**Post date:** [October 6, 2014, 5:33pm UTC](https://forums.unrealengine.com/t/update-skylight/295425/1 "2014-10-06T17:33:11Z")

</div>

Hello,

I’m new to UE4 and enjoy it very much. I want to update the skylight in my Level Blueprint, as I haven’t found another option to change the variables of the skylight. Useing Event Tick would result in a remarkably framerate drop since it is a heavy operation to update the skylight.

So I added the delay node right after the Event Tick. The issue is now that my sun light doesn’t move smooth.

So I thought I could use Event Tick for the sun light and Event Begin Play+While Loop for the sky light. Unfortunatly I can’t start the game to test it, I assume there is an error which I can’t find.

 ![17136-blueprtin.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/a/4ea5142f4f2bf3d367b5252d85746821bad6fcbb.jpeg)

Best,

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [October 6, 2014, 5:41pm UTC](https://forums.unrealengine.com/t/update-skylight/295425/2 "2014-10-06T17:41:10Z")

</div>

You can use Event Tick for the sun and a Timer for skylight updates. Let me know if you dont know how to setup a timer and i’ll try to post a screenshot.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_416b781b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_416b781b](https://forums.unrealengine.com/u/anonymous_user_416b781b)\
**Post date:** [October 6, 2014, 6:01pm UTC](https://forums.unrealengine.com/t/update-skylight/295425/3 "2014-10-06T18:01:18Z")

</div>

Ah of course! Thank you very much. But I assume this could get really quick out of hand and complicated.

 ![17138-blueprtin.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/7/8f7ba0a7c7ab27ec0da6f43d677b968f50eed62c.jpeg)

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [October 6, 2014, 6:05pm UTC](https://forums.unrealengine.com/t/update-skylight/295425/4 "2014-10-06T18:05:15Z")

</div>

Oh, [this](https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseTimers/Blueprints/index.html) is the Timer i was talking about.  
Dont let the whole thing confuse you. All you need is a Set Timer node and a Custom Event. Plug the set timer to Event Begin Play and put the name of your custom event in it, then set the time value you want it to execute \> set it to Loop\> plug your custom event to update skylight and done.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_416b781b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_416b781b](https://forums.unrealengine.com/u/anonymous_user_416b781b)\
**Post date:** [October 6, 2014, 6:19pm UTC](https://forums.unrealengine.com/t/update-skylight/295425/5 "2014-10-06T18:19:26Z")

</div>

Got it! Thank you!
