Seamless Server Travel
Last updated
Last updated
After seamless server travel you might notice that you can't open your Pause Menu - Set Game Paused anymore or your Settings Menu widget is not behaving as it should be.
The explanation is that after entering seamlessly the new map it does not remove widget objects, so also not the pause menu or settings menu widget. However, you may see your Game UI also after server travel because it was created again and added to the viewport. Important to know here is that you probably have your game UI widget obects two times - you see only the one that was just added to viewport but the other one is still there but just not added to the viewport. Because on server travel it removes all widgets from the viewport eventhough they stay existent.
The correct way after server travel would be to just add the still existing Game UI to the viewport and your pause menu / settings menu should work as intended again.
At the place where you create your Game UI (in this example it is the player controller) you should do more as just creating your Game UI and adding it to the viewport. You can do it like so (instead of DemoGameUI use your Game UI widget class):