(UMG)Widget dont show from GameInstance

Hi 2 all, I try to create widget in game instance but it don’t showing in viewport!!! maybe some on know why?

any help!!

print string is fired?

yes, but nothing shown on screen (for testing i do same code from my character BP and all work fine)

When “Event Init” is called no “PlayerController” exist yet in your level , to solve that add a “delay” node (ex 0.05sec) before you create your widget

big thx, all working!!!

You shouldn’t use delays in that way. If a users computer lags, it could still be null after the delay (Rare but possible). You can create an event in the game instance to be called by the playercontroller on the player controller’s BeginPlay (100% stable)

2 Likes