Crash when I call CreateWidget

I’m having an issue that I put in a question here:

Basically when I call CreateWidget() it crashes. And if I change it to UUserWidget and change the parent in the WBP_MainMenu to UUserWidget then it doesn’t crash anymore.

Any help would be appreciated. If not, I might need to just skip the rest of section 2 since it all relies on a custom subclass of UUserWidget.

Solved it, I was not returning false when Super::Initialize() returned false. Initialize is called at least twice when the game starts, and one of those times it fails. But the crash doesn’t happen until somewhere inside CreateWidget() so it was hard to find.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms