# How to Modify CesiumSunSky:Atmosphere height in runtime

**URL:** <https://community.cesium.com/t/how-to-modify-cesiumsunsky-atmosphere-height-in-runtime/35465>\
**Category:** Cesium for Unreal\
**Created:** [September 27, 2024, 11:16am UTC](https://community.cesium.com/t/how-to-modify-cesiumsunsky-atmosphere-height-in-runtime/35465 "2024-09-27T11:16:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GGG\_Holiday](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ggg_holiday/32/14037_2.png) [@GGG\_Holiday](https://community.cesium.com/u/GGG_Holiday)\
**Post date:** [September 27, 2024, 11:16am UTC](https://community.cesium.com/t/how-to-modify-cesiumsunsky-atmosphere-height-in-runtime/35465/1 "2024-09-27T11:16:13Z")

</div>

![image](https://global.discourse-cdn.com/cesium/original/3X/5/d/5df22a252f1eccc3dcae050a2885f53850d18c25.png)  
This won’t work.

---

<div class="post-metadata">

**Author:** ![pjiang9](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/pjiang9/32/27419_2.png) [@pjiang9](https://community.cesium.com/u/pjiang9)\
**Post date:** [September 29, 2024, 12:12pm UTC](https://community.cesium.com/t/how-to-modify-cesiumsunsky-atmosphere-height-in-runtime/35465/2 "2024-09-29T12:12:28Z")

</div>

It won’t work because you have to take atmosphereHeight of CesiumSunsky to set the atmosphereHeight of SkyAtmosphere. Please see the code in CesiumSunSky.cpp.

 ![微信图片_20240929164603](https://global.discourse-cdn.com/cesium/original/3X/f/c/fcc5a967bfe507dc071ab203d693975ecb5d6081.png)

Yet the atmosphereHeight of CesiumSunsky is BlueprintReadOnly in CesiumSunSky.h. I am not sure why it is set to the Read right. Please see the following picture.

 ![微信图片_20240929164755](https://global.discourse-cdn.com/cesium/original/3X/e/f/efa257ac2afa0a6badff8cbdaf66820fa1f6d19a.png)

One solution is that change the BlueprintReadOnly of atmosphereHeight to “BlueprintReadWrite”, and set its value in Blueprint directly.

---

<div class="post-metadata">

**Author:** ![GGG\_Holiday](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ggg_holiday/32/14037_2.png) [@GGG\_Holiday](https://community.cesium.com/u/GGG_Holiday)\
**Post date:** [September 30, 2024, 4:00am UTC](https://community.cesium.com/t/how-to-modify-cesiumsunsky-atmosphere-height-in-runtime/35465/3 "2024-09-30T04:00:52Z")

</div>

Yet Thank you for your accurate answer. wish you a happy life.
