Components/ Tab View

tabs_h tabs_v settings

Unity has built-in TabView, why make a new one?

The built-in TabView has a problem, the buttons to change tabs are un-interactable VisualElements instead of interactable buttons.

Plus, we have added InputPrompts to navigate between tabs on gamepads.

Attributes

tabs_inspector
Attribute Description
Horizontal Horizontal if true, vertical otherwise.
Button Color Inactive buttons' color.
Button Color Selected Active button's color.
Active Tab Index of active tab.

Usage

tabs_layout

1 - Drag and drop custom TabView to your Hierarchy

tabs_usage_1

2 - Drag and drop default Tab to the TabView

tabs_usage_2

3 - Configure Tab and add content inside it

tabs_usage_3 tabs_usage_4