Hey guys,
I’m currently working on the main menu for my game which includes a screen to choose an already created world to play. I’d like to do the file handling for the worlds with C++ therefore I created a class which is extending UUserWidget and set it to be the parent for my WidgetBlueprint. All that is working fine until I change something in the .cpp or .h file and recompile the source. As soon as it is done I get a bunch of errors inside the graph of my WidgetBlueprint and I cant compile it anymore. The only thing that helps is restarting the editor, after doing so everything works fine again. I hope you can help me, here are the compiler results:
Error This blueprint (self) is not a HOTRELOADED_SingleplayerWidget_0, therefore ' Target ' must have a connection.
Error This blueprint (self) is not a HOTRELOADED_SingleplayerWidget_0, therefore ' Target ' must have a connection.
Error This blueprint (self) is not a HOTRELOADED_SingleplayerWidget_0, therefore ' Target ' must have a connection.
Error Failed to find struct for pin Worlds
Error Structures don't match for Break ListElement
Error Structures don't match for Make ListElement
Error Failed to find struct for pin Worlds
Error Failed to create property CallFunc_Array_Length_TargetArray from Target Array due to a bad or unknown type (Array of Structures)
Error Failed to create property CallFunc_Array_Get_TargetArray from Target Array due to a bad or unknown type (Array of Structures)
Error Failed to create property CallFunc_Array_Get_Item from Item due to a bad or unknown type (Structure)
Warning AssociatedVarProperty property overriden LeftText from Left Text type (Text)
Warning AssociatedVarProperty property overriden RightText from Right Text type (Text)
Error Failed to create property K2Node_MakeStruct_ListElement from List Element due to a bad or unknown type (Structure)
Error Failed to create property CallFunc_Array_Add_TargetArray from Target Array due to a bad or unknown type (Array of Structures)
Warning [0310.41] Compile of MainMenu_Singleplayer failed. 12 Fatal Issue(s) 2 Warning(s) [in 213 ms]
Worlds is a TArray of a struct, both defined in in my code, somehow all the errors seem to be related to this array or the struct.
Here is a snippet of the blueprint that is causing the error:
See also here: Problem when extending UUserWidget - UI - Unreal Engine Forums
Thanks in advance,
Taces