Best method for navigating through menus

What is the best way to navigate between menus of similar style while considering the following:

  • The menu be it a pause menu or title menu has multiple variables (buttons) and each button would open a different menu with a different set of buttons.
  • The widget executes an opening animation for the buttons, text etc… when creating it.
  • The pause menu has a background image.

I’ve heard of many different ways…

  • Using the visibility modifier for the variables/buttons considering they are all in the same widget (not very practical considering the hassle it would need to change every text of the menu on top of the buttons and play the animation or rolling the buttons in every time the visibility of the buttons change (??) although I think the official tutorials follow this method?
  • Removing the widget from parent and creating another one which will have the new buttons we need, while the back button removes the new one and creates the previous one (works best for me but I don’t think its logical code wise, like I’ve seen games that change a variable number to trigger a different menu as if its all there just hidden and not create it every time).

So I want to hear expertise thoughts from the community on this matter and see how yall doing it.

Regards, Jacob.