- I created 1 UserWidget → MainMenu
- I created 3 Buttons in it.
- I created 3 Userwidgets - Submenu1, Submenu2, Submenu3 and added 3 buttons to each.
- Now on the Initialization event of the main menu I create the submenu widgets and add them to playerscreen and set their visibility as “Collapsed”.
- What i m trying to do next is when a button is pressed in the MainMenu - an event with button name or some string is sent out and other sub menus should absorb that event and make themselves visible accordingly. I have been trying to do with Blueprint Interface but couldn’t get things working. Unable to understand how to link elements and go about it. Any direction is appreciated.
Not sure what you’re trying to achieve, but as far as I can understand, you need to “Button 1” to open “Submenu1”, “Button 2” to open “Submenu2” and closing other submenus, etc.
To do so you can use “Widget Switcher” and adding children widget blueprints via “User Created” category in palette. And then calling them out by “SetActiveWidgetIndex”, target should be your “Widget Switcher”.