# Change CesiumSunSky position

**URL:** <https://community.cesium.com/t/change-cesiumsunsky-position/17675>\
**Category:** Cesium for Unreal\
**Created:** [March 11, 2022, 6:22pm UTC](https://community.cesium.com/t/change-cesiumsunsky-position/17675 "2022-03-11T18:22:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mutolia](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mutolia/32/3476_2.png) [@Mutolia](https://community.cesium.com/u/Mutolia)\
**Post date:** [March 11, 2022, 6:22pm UTC](https://community.cesium.com/t/change-cesiumsunsky-position/17675/1 "2022-03-11T18:22:57Z")

</div>

Hi guys, I’m having trouble changing the Sun position other than using the Date and Time sliders. The Gimbal seems to be locked at the positions metioned above. Linking a Directional Lights doesn’t seems to work. What are my options?  
Thanks in advance, Bye

---

<div class="post-metadata">

**Author:** ![xuelong](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/xuelong/32/4574_2.png) [@xuelong](https://community.cesium.com/u/xuelong)\
**Post date:** [March 14, 2022, 2:51pm UTC](https://community.cesium.com/t/change-cesiumsunsky-position/17675/2 "2022-03-14T14:51:10Z")

</div>

Hi @Mutolia ,

The options might be locked due to the CesiumSunSky actor reading the long/lat position of the CesiumGeoreference actor you have in the scene. In order to set a custom long/lat value, you can try creating a new CesiumGeoreference just for the SunSky (maybe call it `SunSkyGeoreference`) and set the reference:

 ![image](https://global.discourse-cdn.com/cesium/original/3X/b/d/bdd0967436c3fe0c37a99673fea6743a6a5473a0.png)

Then you can edit the long/lat values from the Georeference and see the updates (it won’t work if you set it from within the CesiumSunSky’s GlobeAnchor component).

 ![image](https://global.discourse-cdn.com/cesium/original/2X/e/e099b1c34607291eb6ea3306d839518301354cc7.png)

---

<div class="post-metadata">

**Author:** ![agallegos](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/agallegos/32/4464_2.png) [@agallegos](https://community.cesium.com/u/agallegos)\
**Post date:** [March 14, 2022, 3:05pm UTC](https://community.cesium.com/t/change-cesiumsunsky-position/17675/3 "2022-03-14T15:05:14Z")

</div>

To add on to what Xuelong said, if you’re looking to move the sun independently of the date/time/longitude/latitude, you may want to use a different actor that CesiumSunSky. CesiumSunSky was designed to give an accurate sun position for the time and location, and has a lot of logic to enforce that. You can create a similar effect by creating a new blueprint with a directional light, sky light, and SkyAtmosphere - that should allow you to move the sun freely.
