The game works as expected in PIE but packaging it with the new Compilation Manager and Blueprint Nativization will yield strange results:
-
Widgets are a only partially
initialized (size and position X=0,
Y=0). -
Widgets that are added as childs to
the main widget will not appear at
all because of this. (It is a window
system with a task bar that shows
icons.).
Switching off Compilation Manager and Blueprint Nativization following a restart of the editor will lead to erroneous packaging crashing the game on start with
Fatal error: [File:D:\Build\++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp] [Line: 1936]
FAsyncPackage::FindExistingImport class mismatch DynamicClass != WidgetBlueprintGeneratedClass
Cleaning “Saved” and “Intermediate” and packaging again (with Compilation Manager and Nativization turned off) will stop the game from crashing and show all widgets as intended but now mouse clicks pass right through borders that should fire off the OnMouseButtonDown event. Buttons within all widgets can still be interacted with.
The Warning/Error Summary looks like this:
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogBlueprint: Warning: [Compiler ObjectWindowContent] 'Object Window' does not inherit from 'Movable Window' ( Cast To ObjectWindow would always fail).
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogBlueprint: Warning: [Compiler ObjectWindowContent] [0011.68] Compile of ObjectWindowContent successful, but with 1 Warning(s) [in 1 ms] (/Game/ProjectOrpheus/GUI/WindowManager/Window/ObjectWindowContent.ObjectWindowContent)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogBlueprint: Warning: [Compiler ObjectWindowContent] [0011.68] Compile of ObjectWindowContent successful, but with 2 Warning(s) [in 0 ms] (/Game/ProjectOrpheus/GUI/WindowManager/Window/ObjectWindowContent.ObjectWindowContent)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogBlueprint: Warning: [Compiler ObjectWindowContent] [0011.68] Compile of ObjectWindowContent successful, but with 3 Warning(s) [in 0 ms] (/Game/ProjectOrpheus/GUI/WindowManager/Window/ObjectWindowContent.ObjectWindowContent)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogLinker: Warning: Can't find file '/Game/UI/WindowManager/Contents/BuildPanel/Icons/StructureIcons/DirtRoadIcon'
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogUObjectGlobals: Warning: Failed to load '/Game/UI/WindowManager/Contents/BuildPanel/Icons/StructureIcons/DirtRoadIcon': Can't find file '/Game/UI/WindowManager/Contents/BuildPanel/Icons/StructureIcons/DirtRoadIcon'
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogUObjectGlobals: Warning: Failed to find object 'Object /Game/UI/WindowManager/Contents/BuildPanel/Icons/StructureIcons/DirtRoadIcon.DirtRoadIcon'
Strangely enough the cast in ObjectWindowContent is always working and compiling the blueprint separately will not give any of those warnings. ObjectWindow does indeed inherit from MovableWindow.
DirtRoadIcon was moved along with several others to a new folder. The path specified in the warning does not exist nor are any blueprints using the old reference.
Standalone works as intended.