Why does my main menu show a HUD element?

I have created a main menu level, and its blueprint looks as follows. However, when I play this level, the viewport also shows my main menu widget, as well as my UI widget, which is in a different widget blueprint. What causes this? Is it related to the class inheritance of Main Menu?

If your main menu widget inherits from your UI widget yes, but not the other way around.

Somewhere your creating the UI widget. Do a find in a blueprint and uncheck “this blueprint only” for ‘ui’ or ‘create widget’ and try to find it.

THats the only possible reason I can see. Unless you added that UI widget to the list of your main menu widget in the designer.

Hope this helps
Don’t forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.

try this one here

https://docs.unrealengine.com/latest/images/Engine/UMG/UserGuide/CreatingWidgets/CreateWidgetNode.jpg