Widget switcher: It works, but is this how its suppsed to work?

46384-screenshot_4.png

This is the ONLY code/BP that I use for widget switcher. The text1 and 2 are widgets.

The highlighted box below is the switcher

Hi DrakeWalker,

From my experience. You would just need to populate the WidgetSwitcher with your Widgets. Then you can change the active index at anytime in order to switch between them. No longer needing to specific the specific widget reference. This is great if you need to switch between sub windows but don’t want to remove / add them to viewport as I see you’re doing now.

This is how I’ve used it, and notice that I’m saving a game slot. That is because the second Widget I switch to loads from a GameSlot, then I save when I switch to the original window without additional effort to manage the Widgets visibility.

Hope that helps!

-Peace

I actually ended up decided to not use other Widget. I just left the space open and created everything in side the switcher/binding. This saved space and saved me the need to make other widgets.

But thanks anyways!

You’re mixing two absolutely unrelated topics. Using Widget Index instead of Widget Reference in Widget Switcher has nothing to do with “remove / add widgets to viewport”. First - “no longer needing to specify the specific widget reference” - in many cases using Widget Reference is more convinient than dealing with Indexes. Second - you never need to remove/add widget, that’s literally the whole point of Widget Switcher - that you just switch and that’s it. Why would you remove child widget from Switcher?