# Rotation of Directional light of sunSky doesnt work

**URL:** <https://forums.unrealengine.com/t/rotation-of-directional-light-of-sunsky-doesnt-work/636568>\
**Category:** Português (Portuguese)\
**Tags:** bug, unreal-engine, UE5-0, question\
**Created:** [August 29, 2022, 4:33pm UTC](https://forums.unrealengine.com/t/rotation-of-directional-light-of-sunsky-doesnt-work/636568 "2022-08-29T16:33:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gus219a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gus219a](https://forums.unrealengine.com/u/gus219a)\
**Post date:** [August 29, 2022, 4:33pm UTC](https://forums.unrealengine.com/t/rotation-of-directional-light-of-sunsky-doesnt-work/636568/1 "2022-08-29T16:33:19Z")

</div>

Hello!! I have a little problem here: when I change any value of axis rotation (rotação) it always returns to the same values 180°, -45,52 and 5,3106 . How can I put a value and it remain? #please-help-me

 ![unreall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/2/9d2614af38ea8263547f638e16bd6167d533a19a.jpeg)

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [September 5, 2022, 10:06pm UTC](https://forums.unrealengine.com/t/rotation-of-directional-light-of-sunsky-doesnt-work/636568/2 "2022-09-05T22:06:35Z")

</div>

Hi @gus219a,

With the SunSky plugin the rotation is based on your position in the world + time of day. (For real-world accurate shadows)

 ![sunstuff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/8/80891daf3b7c81ab96d2f62afbc40d97c377bece.png)

So select the SunSky blueprint in your level (it looks like a compass) and change Location/Date+Time data to change the directional lights angle.

Welcome to the Forums!

---

<div class="post-metadata">

**Author:** ![gus219a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gus219a](https://forums.unrealengine.com/u/gus219a)\
**Post date:** [September 9, 2022, 10:52pm UTC](https://forums.unrealengine.com/t/rotation-of-directional-light-of-sunsky-doesnt-work/636568/3 "2022-09-09T22:52:07Z")

</div>

![sunSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/b/b9b5444a6dab652bf7be6e2b234713ca52d22d46.png)  
how can I make it? (I’m starting in unreal )

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [September 12, 2022, 5:46pm UTC](https://forums.unrealengine.com/t/rotation-of-directional-light-of-sunsky-doesnt-work/636568/4 "2022-09-12T17:46:31Z")

</div>

If you just want have full control over the rotation of the directional light, you can delete the SunSky Blueprint. (The Blueprint includes a directional light)

Then you could add your own directional light, which instead of being a directional light inside of a Blueprint controlled with logic, would be a simple light actor.

Alternatively: you could try disconnecting the ‘Update Sun’ function in the SunSky Blueprint. (This would come with the benefit of keeping the SkyAtmosphere and Skylight components)
