I can't change my Sun Height dynamically.

I can’t change my Sun height in the level blueprint. No directional light actor linked with it. Here’s the code:

Hi Fallerrr,

The Hour variable there is an integer, you’ll need to cast it to a float first:

That does make sense, however even if I set the value directly the sky doesn’t change.

You’ll need to call Refresh Material too…

image

2 Likes

Was going to say.
The Sky Sphere BP has a dedicated method to cause the material to update with the new variables.
AND, it’s a bad idea to run it every tick inside the level bp…

1 Like

I can understand that but I’d need to to make sure the time is synced with whatever is in the Now node.

The now node is avaliable anywhere. But it is also reliant on system time, so I wouldn’t necessarily use that…

Hero

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.