When I play my game in editor while on standalone or playing as server my game works perfectly fine, however if I play as a client, or in my packaged game, my main menu widget refuses to display.
I’m Starting to think it has something to do with the player controller not appearing in time.
Here’s my games settings:
It referring to the 2 nodes in the level blueprint
Its like my player controller is not initializing in time, or maybe my game mode isnt. Am I doing something wrong?
Ok I just noticed you are using begin play to initiate the functions.
Try moving the trigger to OnPostLogin of your GameModeBase. Then you can pass in the spawned player controller and use it to pass the correct controller.
Wouldn’t on post login only be accessible from the server anyways? Since its on the game mode itself, which is only found on the server.
The cast to BP_MenuHUD is failing.