I am experiencing a peculiar issue with Unreal Engine 5.2.0 involving the SunSky Blueprint from the Realistic Sun Position Plugin.
The SunSky Blueprint is functioning perfectly when I run my game in the Editor (PIE), but it doesn’t seem to work when I try playing it as a standalone game. Specifically, the light from the SunSky actor doesn’t appear, and no events from the SunSky Blueprint are firing.
I’ve tried debugging the issue and these are the steps I’ve taken so far:
Checked if the plugin is enabled for standalone. It is.
Confirmed that the Blueprint is included in the packaged game.
Compiled shaders, but the issue persisted.
Added print string nodes on Begin Play and Event Tick in the SunSky Blueprint to verify if it gets executed, but it did not fire. (Cast to SunSky is NOT failing.)
Tried calling a custom event in the SunSky Blueprint after getting all actors of its class, but that didn’t work either.
Confirmed the Blueprint is not set to “Editor Only”.
Tested the same setup in a blank project where it worked correctly, which makes me believe this issue is project-specific.
Verified my Unreal Engine installation, which did not solve the issue.
My game relies heavily on Blueprint scripts, uses World Partition (spatially loaded is disabled), and I haven’t written any custom C++ code. All other Blueprints and Actors in the game work as expected, it’s just the SunSky Blueprint that is causing this issue.
I am seeking help in troubleshooting this problem further. If anyone has encountered a similar issue or has suggestions for potential solutions, I would greatly appreciate it.
Hello,
we have same problem. Did you perhaps ugrade the project from 5.1 as we did? This could be one of the cause, because it still works in a completely new project.
Enclosing a piece of log for the standalone game regarding the SunSky actor:
Error: FStructProperty::Serialize Loading: Property 'StructProperty /SunPosition/SunSky.SunSky_C:UpdateSun:CallFunc_GetSunPosition_SunPositionData'. Unknown structure.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin SunPositionData no longer exists on node Break <unknown struct> . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Elevation no longer exists on node Break <unknown struct> . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Corrected Elevation no longer exists on node Break <unknown struct> . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Azimuth no longer exists on node Break <unknown struct> . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] No Struct in Break <unknown struct>
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin <Unnamed> no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin <Unnamed> no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Latitude no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Longitude no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin TimeZone no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin bIsDaylightSavingTime no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Year no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Month no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Day no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Hours no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Minutes no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin Seconds no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] In use pin SunPositionData no longer exists on node GetSunPosition . Please refresh node or break links to remove pin.
Error: [AssetLog] C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\Runtime\SunPosition\Content\SunSky.uasset: [Compiler] Could not find a function named "GetSunPosition" in 'SunSky'.
Having this issue as well, however, I found that if I replace the game instance with a new one, it’s fixed. Just an annoying task ahead to replace all references now.
Edit: Scratch that… after replacing all references of the game instance with a new game instance, it is no longer working… (standalone)
Edit: Packaged the game and it works. I guess it just doesn’t work in standalone for some reason/bug