Download

Please help: Construction script should be controlling light color 4.26

Hi, Obvious Newbie here…
I’m trying to add more fine control to several component properties of a Directional light component and Sky Atmosphere component based off the sun’s direction. I made a blueprint and am using its construction script to sample the dot product of the light direction against straight down, then input that value to t of a clamped linear color curve. So far I tried sampling forward vector, and local and world rotations with no success. Though I’m able to freely rotate the sun (viewport looks fine), and see it’s local rotation values get updated live in the properties window, print string seems to always return default (unchanged) values. Why do I see the updates in the editor, but the construction script can’t seem to see the values at all?

Thanks!