MultiPlayer: How to set a persistent loading screen while connecting

Genova
Thu, 22 Sep 2016 04:09:52 +0000
UI

Hello,

I’m having trouble to set a loading screen that will persist several seconds after a player joined a game. My project is prepping several things that I need to hide when a client join. Issue is not happening to the Host though.

I tried several methods, none worked perfectly.

1. Set the LoadingScreen Widget in Game Instance. Results: Widget gets automatically removed upon arriving in the new map.

2. Set the Widget in the PlayerController OnBeginPlay. Results: Widget appears but not immediately. We can see the game for a frame or two.

3. Using the Construction Script in the player controller to send an Event to the GameInstance (since it’s not possible to create a widget in the construction script). Results : Error: CreateWidget cannot be used on PlayerController with no attached player.

4. Using the Level OnBeginPlay to Create the widget. Results : The level is visible for a frame or two (same as 2)

I’m out of options here. Is there some kind of option somewhere to magically fix this ? I dunno, like a bool “Auto Remove Widget on map travel” ?

Thanks

21 posts - 16 participants