Can't refresh skysphere material after moving light
When I select direct light as an actor used for the skysphere and I move the light, I can't refresh the material (sun stays at the same position and different from the direct light). I would like the sun light to automatically follow the direct light.
asked Mar 22 '16 at 12:50 AM in Using UE4
In this particular BP you will need to hit the Refresh Material checkbox for the Sky Sphere to update the location of the Directional Light. When this button is hit it will update the material of the sky sphere to set the sun disk where the directional lights position would be.
If you need something like a moving sun in your game for day/night cycle there are a number of tutorials on YouTube and a free project I have here for download after setting up Gregdumb's version from the UE4 Wiki and making some adjustments. https://forums.unrealengine.com/showthread.php?56777-TUTORIALS-Photons-Be-Free-Mini-tutorials-and-other-curiosities&p=209224&viewfull=1#post209224
I hope this helps.
answered Mar 22 '16 at 02:44 PM
Tim Hobson ♦♦ STAFF
I know it started working for you but i have a trick you can use if you run into this problem again.
you have to link your sky sphere to your directional light. to do this look under the default menu in the details panel, underneath the refresh material button. there you will see directional light. click the eyedropper symbol next to the magnifying glass. then click on the directional light you want it to link to.
Once you have done that, click the refresh material button again and everything should work out just fine. :)
answered May 31 '19 at 05:54 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here