How to create a widget in an Offline Client

Hi,

I don’t understand how to create a widget on a client build while offline.
The UI won’t spawn when I start the game unless it’s connected to the dedicated server.

It seems that an offline client doesn’t have a PlayerController.

My plan is to create a Login UI then after pressing the LoginButton it will connect to the dedicated server IP address.

Offline Client:
→ Create Login Widget (My Problem)
→ Press LoginButton
→ Connect to dedicated server

Thank you

I still haven’t solved this problem.