Failed to compile project when trying to spawn CesiumCreditSystem C++ actor

Hi, I’m trying to use my custom c++ actor to spawn Cesium actors (Credit system, Sun sky, Geo reference etc). I setup the plugin and module dependency to be able to access cesium c++ classes in my actor code. When I try to spawn cesium actors using the following spawning call, I get some errors during compilation of project. It seems like when CesiumCreditSystem tries to static load the CesiumCreditSystemBP, the blueprint references several editor widgets which are not found during compilation. I’m attaching the log below.

[2022.03.04-07.34.33:591][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:591][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:594][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:595][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:595][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:596][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:597][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:598][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:599][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:600][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:600][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\ScreenCredits.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:601][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:601][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:601][ 0]LogLinker: Warning: Unable to load ScreenCredits with outer Package /CesiumForUnreal/ScreenCredits because its class does not exist
[2022.03.04-07.34.33:602][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:602][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:602][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:603][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:603][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:603][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:603][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:604][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:604][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:604][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:604][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:604][ 0]LoadErrors: Failed to load /Script/WebBrowserWidget.WebBrowser Referenced by WidgetTree
[2022.03.04-07.34.33:607][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:607][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/WebBrowserWidget’: Can’t find file.
[2022.03.04-07.34.33:607][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:608][ 0]LogLinker: Warning: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:608][ 0]LogLinker: Warning: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:609][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:609][ 0]LogLinker: Warning: [AssetLog] C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal\Content\CesiumCreditSystemBP.uasset: Failed to load ‘/Script/UMGEditor’: Can’t find file.
[2022.03.04-07.34.33:609][ 0]LoadErrors: Failed to load /Script/UMGEditor.K2Node_CreateWidget Referenced by EventGraph
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/BlueprintGeneratedClass.cpp] [Line: 197]
UBlueprintGeneratedClass::GetAuthoritativeClass: ClassGeneratedBy is null. class ‘/CesiumForUnreal/ScreenCredits.ScreenCredits_C’

Hi @Harshal_Mehta,

Can you paste a screenshot or snippet of the code that you’re using to spawn the Cesium actors?

Some more information about your use case might be helpful. Why do you need to spawn the credit system and georeference manually? The plugin should spawn these actors automatically when you create a tileset.

-Alex

Hi Alex, attached are the screenshots of sample code to show the usage. I do not need to spawn the credit system, I thought manually spawning it might work better but the problem occurs even when I just try to spawn a CesiumSunSky from my custom actor from my plugin.


Hey @Harshal_Mehta,

Thanks for following up with your code. We’re looking in to this and will get back to you as soon as we can.

-Alex

Hi Alex, it turns out this problem was happening due to loading phase of my plugin. My plugin was set to have a LoadingPhase of “PostConfigInit” which comes before the “Default” phase of the Cesium plugin. This causes the credit system BP to get compiled prior to any editor widgets are loaded and ends up causing that error. For now, I created a separate plugin to interface with the cesium plugin and set the new plugin’s LoadingPhase to “Default” and this solves the problem.

Thank you,
-Harshal

2 Likes