How to add a child to the HUD in multiplayer

Hello, I have a multiplayer game where I have a main HUD, created in the player controller which is associated with the mainmap. I want to add to it a child widget that I create in a blueprint put in the mainmap. So, for that, I get the list of player contain in the gamestate, and for each loop of this list I get the player controller associated. After that, I get the mainHUD and I try to add the child to it. But, in solo or in LAN, everything works perfectly but when I try to do it in online, the mainHUD is not found and the game return me “empty”.



In reality it’s work, when the client (and not the host) launch the map, and it’s work ONLY for the client, not for the host.
All of the player controller are get, and the cast of the player controller work correctly, but the widget is not found.
In the player controller the widget is create after a begin play, and after testing, the code is executed before the cast so the problem is not here.


I try different ways of replication but it’s doesn’t change anything.
Also, I try to send the widget that I want to be the child directly to the playercontroller/gamestate, but it’s the same problem.
Any help is welcomed ! Thank you !

dont try to replicate HUD stuff, HUD is local player only.
Instead create the hud as you want it, add the minimap or whatever and have it bind to gamestate events. so new player joins, call an event, HUD updates itself.