UI elements are missing when I change Game State Class

Hello, I’ve created a UI widget and there is not any problem when I set “Game State Class” as GameStateBase but if I change it to MyGameState (I’ve created this one), I can’t see the UI elements on the screen.

It is like that:

Game State Class - GameStateBase: UI elements are visible; Print String data in my custom game state are invisible (obviously)
Game State Class - MyGameState: Print String data in my custom game state are visible; UI elements are invisible

By the way, I’ve created my UI widget and added it to Viewport in MyCharacter and not MyGameState.

Since I’m new to Unreal, I have no idea how can I enable UI while using my custom Game State class.

1 Like

I have same problem, does anyone suggestion alternative for this problem?