As the title implies, I have a SunSky blueprint, modified to include a day/night cycle, as well as a running clock/calendar of the current time and date. The blueprint has worked fine for literally hundreds of update iterations, and through several engine upgrades, including 5.5.
As of late, I have no idea what happened, but I’ve noticed the blueprint stopped working outright. No error in editor at all, it just gets completely ignored when running the game in standalone mode. This is not just about blueprints not working: literally no elements within the actor are even showing. No lights, no moon mesh object, no clouds, no post processing. Nothing.
When running inside the editor, everything works perfectly, but standalone mode refuses to include the blueprint. It’s as if the standalone mode is automatically hiding the actor.
After a good amount of messing around, breaking and rebuilding, I found the culprit: the GetSunPosition node. Its mere presence, connected to any live execution pins causes the issue.
I even tried to connect it by itself on the OnBeginPlay, or Tick. Same result.
I tried several searches, and it seems as though I’m the only one who came across this issue, which usually means I may be looking simply at some odd side-effect, and not necessarily at the root cause.
Does anyone have some idea on what may be going on?
UPDATE:
Just for kicks, i tried to drop the GetSunPosition node into the OnBeginPlay of my third person character blueprint, and it did the exact same thing. Anything connected to the character blueprint was gone in standalone mode. There is definitely something weird happening with the GetSunPosition node that somehow throws a grenade into any blueprint I drop it in.
2nd UPDATE:
In yet another failed attempt, I tried to move some of the functions related to GetSunPosition into the game instance blueprint. This time nothing broke, but the GetSunPosition node disabled the function in which it resides (the one that updates the sun position “UpdateSun”), so now my sun is stationary, while the clock and date seem to work.