In the game instance blueprint on Event Init, I create two widgets and store their references inside a variable in the game instance itself. In the level script, on begin play, one widget is set to the visibility Self Hit Test Invisible. Then is add to the viewport.
Widget 1 is for level 1, widget 2 is for level 2. Now the problem is if I open a level for the first time, then the widget shows normally. So by default the game loads level 1, then I hit a button to open level 2. But if I go back to level 1, or go again from level 1 to level 2. The widgets won’t show!
I checked the game instance with that blueprint Is Valid node. It’s fine, but the widget references are not. For some reason the references get invalided when the level is opened for the second time. I don’t use any delete or remove widget nodes. Open Level node’s Absolute, is checked.
Is this a bug? I can use a workaround by just always creating widgets inside the level script. But I would prefer to store most of the references inside the game instance.


