How to Modify CesiumSunSky:Atmosphere height in runtime


This won’t work.

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.

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.

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

1 Like

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