How i can use same button in different level ?

Hello,

So, i test some things in unreal engine, and today is the menu system.

I’ve created main menu (loaded like as level) and in game menu (loaded with escape key).
Both are sub settings menu (is the same widget blueprint).

In my Settings Widget Blueprint, i have a return button :

I think the solution is to test form which menu the settings is openned (with a test with isMainMenu variable by example) for know which widget to create when return.

But, i don’t know which approach is better :

Lot a thanks in advance by your returns,

You can run the menu system from the game instance.

The GI can manage all the widgets, and keep track of them.

So the ESC key can have different meanings depending on what state the GI is in.