Possible to hide certain TabBars of a TabContainer?

Godot Version

4.4

Question

I am using TabContainer and I have created a rich amount of menu in it already. Think of it like RPG games that have menus within menus that the player could navigate and manage items, characters, etc.

But the thing is just like many games, when we first introduced the player to the game, not everything will be available at first. So is it possible programmatically to “hide” some TabBars in the TabContainer? The player will not have access to some TabBars until they have reached certain points in the game.

Help > Programming

You can see docs here. Also, you can see these docs inside editor with Ctrl + Click on TabContainer class name, you can see available methods, properties, signals, etc. in docs.

There are some useful functions:

disable tabs

hide tabs

1 Like