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 :
- create isMainMenu variable from level blueprint ?
like this :
but how access from my widget blueprint correctly ? - create isMainMenu variable from widget main menu ?
but how access from my widget blueprint correctly ? - Or, i must testing widget reference ? (but i think this need a cast and i hear is not best practice)
Lot a thanks in advance by your returns,