I was wondering how I would be able to set a different time of day in the environment to suit the setting of a demo I’m in the middle of creating. Is this done in blueprints? If so, how is it done? I haven’t done anything in blueprints yet but apparently that’s how you do a lot of things in UE4 and I’ve been thinking of getting into them since I’ve got a pretty good grasp on level creation now. In my current project there is an asset called “BP_Sky_Sphere” which I am guessing refers to the blueprint code of how the sky and clouds are able to rotate around in real time. Would I use this to set a time of day or a day cycle?
Also, would I be able to set up a sort of time of day cycle as well where the time of day updates continuously in real time? All of this would be awesome to learn.
You have to create a day&night cycle v=xt_TIYthRUE (basic tutorial -> more advanced ones on youtube/wiki)
When you want to set the time permanently -> just rotate the directional light
I have a problem with the Blueprint that I had made. The Blueprint that changes the sun’s rotation does seem to work, in a way, but the time of day does not actually change. The shadows do follow a rotation but what I really want from it is the actual day time to change, not just the position of the shadows to change. I’m not sure what I did wrong or if there’s something that I had missed.
Wait, this is a known issue?! I’ve been pulling out my hair and have remade my project from the ground-up just because of this I didn’t read this in the preview release / bug thread.
But it helps find the problems before the next stable release I know you should create-a-copy but why not just create-a-copy and work on it and then update and repeat? :>
Is UE4 v 4.7 now a stable release? One of the last times I checked, it was a preview build but now according to the launcher it just says v4.7 so I’m guessing it’s stable now?
If so, I’ll probably update to it. Are there any known problems with updating to a newer version if a project is stuck in, say, v4.6.1?
The final build has not been released yet. This is still 4.7 Preview 7. If you use the build, just make a copy of your project, Do not convert in place as that is always bad practice and it’s best to always have a back up of your project.
If you’ve not set a value for the sun rotation speed then the default is zero. The “Error” you see when you create the float is just there so that when you compile you can select the variable in the panel on the left and scroll to the bottom and set a value for your float variable. Otherwise it will always be 0.
If you set it to something like 5 you’ll see the sun start moving.
I’ve already tried that and the only thing that changes are the shadows.
EDIT: YES!! I changed the Directional Light Actor in the editor from light source to the blueprint sun and now the Sun follows a rotation. Thanks for all the help