How do you Handle Pause and Inventory UI?

Godot Version

Godot v4.6.2

Question

I’m about to start working on a pause menu for my game, but I’m not sure how to actually begin making it.

I’m just wondering what the best way to do it is. Do I have to make the pause menu invisible until a button is pressed? Do I have to instantiate it when the button is pressed?

Both ways are valid…
For my game Go to bed bat I just hidde all the stuff and when a player presse phause it shows and I recomment you to read this:

Thanks!