Hello,

I'm wondering what's the best way to manage menu. Actually I made differents scenes for each menu (Title screen, settings, game over menu) and when I must go back to the game I used the current level path store in globals script. But I think about make a singleton call MENU and hide/show canvas layer when I call them. Or maybe create a control node name MENU in the game scene and show/hide too.

What's your way to manage that things ?

Hello TomLaPomme it depends strongly on the complexity of menus I´ve got. For simple menus I am using a single scene with different control nodes which I hide/show. For more complex menus I create a parent, namely hud, and instance different scenes (as menus). BR, mago

It's to make a GUI template for all of my game, where I juste change assets for each games.

So you make differents menu scenes and instances theme in a single node in the game scene ?

I make most of my menu scenes under their own control nodes, and show/hide them as needed. Probably not the most efficient way, but I haven't noticed any slow downs and I find it works well for my needs

Though most of the menus are fairly simple. I've gotten around some of the more complex stuff by having a submenu, which has it's own control nodes that are shown/hidden as needed and it has worked fairly well.

I would suggest using the method you feel most comfortable with, and/or the simplest way of accomplishing what you need. You can always add more features, make it more preformant, and make it more complex later if you need.

Okay, I will make something like this for my template. Thanke you both for your answer !

5 years later