I recently added a new interface to my HUD classes to expose some functions. In PIE the interface and its functions work without error, but in standalone the HUD doesn’t show at all.
When running standalone with a debugger attached, I get the following output:
[ 0]LogBlueprint:Error: [compiler] Error Missing Event 'SetMinimapActor' for Event SetMinimapActor
[ 0]LogBlueprint:Error: [compiler] Error Missing Event 'SetSimModelActor' for Event SetSimModelActor
[ 0]LogBlueprint:Error: [compiler] Error Missing Event 'SetHudType' for Event SetHudType
[ 0]LogBlueprint:Error: [compiler] Error Missing Event 'SetHudVisibility' for Event SetHudVisibility
[ 0]LogBlueprint:Warning: [compiler] Warning [0018.65] Compile of BP_Slate_HUD failed. 4 Fatal Issue(s) 0 Warning(s) [in 109 ms]
Problem is, these functions exist and work in PIE. These particular functions are implemented in a HudTemplate class (my project requires us to support multiple HUDs, so functionality that is common between them goes in a parent class to reduce repetition).
When implemented in HudTemplate, the class fails to compile for standalone because the compiler can’t find the functions. But if I then go and implement them directly in the BP_Slate_HUD class, standalone crashes entirely when trying to compile it.
(I walked up the stack a bit and confirmed that it is the HUD that is compiling when this error happens)
Anyone have any insight into what this weird compiler business means, and how I should go about fixing it? I can’t tell if these are quirks in the engine or just bad scripting on my part.