Components/ Tab View



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

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

1 - Drag and drop custom TabView to your Hierarchy

2 - Drag and drop default Tab to the TabView

3 - Configure Tab and add content inside it


Custom Tab Component
Built-in Tab component is easier to use but it doesn't allow customization of Tab-Button.
Custom Tab component allows you to add any element to Tab-Button content via VisualTreeAsset.

