Multiplayer Shootout Level Loading Screen
In my custom Game Instance, I have created a loading screen UMG widget. I then add it to the view port just before calling Open Level to load the level after clicking my play button on my main menu screen. I'm following the way they do it in the Multiplayer Shootout game.
The problem is that once the new level is loaded, the loading screen UMG widget gets destroyed. I believe UE4 destroys all widgets between level loads now. So my loading screen disappears (so quick you don't even get to see it) as it gets destroyed before the level has even finished loading. In addition, my LoadingScreen UMG widget variable in my Game Instance blueprint gets set to None as well. So any further calls to try and add/remove my loading screen causes errors as UE4 has set my LoadingScreen variable to None.
The Multiplayer Shootout game suffers from the same problem. I believe in one of the recent engine updates (like 4.8 I think) Epic changed it so the engine would destroy all widgets when loading a level as it didn't use to do this. Which explains why the problem happens in the Multiplayer Shootout game as I think it was created before 4.8 but hasn't been updated to handle this new way of working.
Once your in the game (multiplayer shootout), press Q to open the in game menu. Then click on Leave to go back to the main menu. However it just goes to a blank screen. No menu is shown and I believe this happens because it gets destroyed before the level has had a chance to load.. i.e. it has been added to the viewport after calling Open Level, but before the actual "level loading" takes place. I think the actual level loading task must be something that occurs later on.
Thanks for your thorough investigation and report. We already have this bug entered into our system (UE-17175): Multiplayer Shootout was created in 4.7 and not properly updated to reflect the changes in how UMG is handled between level changes in 4.8 and beyond. The sample project is going to be updated to better reflect the correct method for UMG and Multiplayer, but we do not have a timeline for that update yet. Once we do, we'll post on this thread with the update information. Thanks!
answered Nov 10 '15 at 07:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here