I have been trying to create a tabbed menu for a while. I achieved that easily by removing and creating another widget, but it also removes the variables I sent from LevelBP. So, I am thinking about creating all layouts inside one Widget and changing their Z-Order respectively.
Here is my question:
How can I use Set ZOrder? Unreal Documentation about this is pretty empty for me. If only I can add my different Borders as target…
Is there a better way to achieve this? I mean, without losing variables (not removing the widget it seems)
For a Tabbed Menu I would recommend you to use the “Widget Switcher” Panel, it’s really simple. The ZOrder decides which Item is rendered below or on top each other, nothing less or more. You would have to wrap your Items with any panel of your likings and parent it to the canvas. However neither ZOrder or removing Widget Blueprints from the Viewport is a good Idea for displaying content within one Menu. For a Tabmenu you should just use the Widget Switcher, for everything else “Set Visibility” - hide things you don’t want to see/interact and make them visible again whenever you want.