Switching between widgets

I have two different widgets in the main menu of the game, the first is the menu itself, and the second is the choice of the save slot. I need to somehow switch between two different widgets so that one disappears and the other appears, and vice versa when the player selects the back function.

On the click of the button, that needs to show savegame list do this

  • Create Savegame List widget
  • AddToViewPort on SavegameListWidget
  • RemoveFromParent on Menu Widget.

A Widget Switcher might be what you’re looking for:

1 Like