I am facing a weird issue. Here is a portion of my code. I have debugged and confirmed this is the part that is causing the problem. Removing it works fine.
for getting User Widget Blueprint. But for some unknown reason, in some cases it works in some cases the editor simply freezes at 72% loading. I decided to check if
GEngine
is valid or not, which make it work perfectly fine no issues or errors. It works in editor, standalone.
The problem however occurs when i package the game. Packaging went smoothly no issues, errors in output window. But the game simply crashes. Throws this issue:
and then select the widget from the dropdown in the detail panel. Which works but the biggest drawback is whenever i make some changes to the class i need to re-select the class from the dropdown AGAIN! Instead i hard coded the referance paths and using
I had a similar problem with Widgets hanging but i could not find any solution to it. So I just moved it out of the constructor and now everything works fine.
Putting it in property like you did last is the way I solve most of the preselection of assets.