Add to Player Screen not working as I expected

If you are trying to create the widget inside the Player Controller ‘BeginPlay’ event as the live training did you will see an error on the console… ‘CreateWidget cannot be used on Player Controller with no attached player’. This is why the HUD isn’t appearing for the extra players.

What I did was to add some logic to the Player Controller which checked if the HUD variable is valid, and if not, create the widget before it calls ‘Spawn Character’ on the game mode. You also need to un-hook the widget creation from the BeginPlay event.