4.5 – Tab Panel

Tab panel is a container of containers. You can add many panels and allow users to switch between them easily. To add new panels to tab panel just duplicate one of the default ones, delete the newly created panel’s variable name and modify the corresponding title in Titles property.

On Tab Change
On Tab Change property is an Action List which triggered when the active tab panel changed.

Active Panel
Active Panel property determines the initial active panel of the tab panel. Also you can use Active Panel property to select the tab to edit in edit mode.

Titles
Titles property is an array of GUIContent and is used to determine the icon, text and tooltips of the tab buttons. In tab panel, every child panel has a corresponding title.

Tab Position
Tab Position property is used to determine the postion of the tab controls. There are two options for Tab Position property. Up and Down.

Tab Type
Tab Type property is used to determine the visual appearance of the tab controls. There are two options for Tab Type property. If Black is selected, the tab appears just like a black iOS tab bar. If Button is selected, it looks more like a standart tab panel.

Style
Style property is a GUIStyle and is used to fine tune the visual appearance of the tab bar background.

Tab Left
Tab Left property is a GUIStyle and is used to fine tune the visual appearance of the tab button at the leftmost. If Tab Type set to Black, Tab Left Tab Center and Tab Right are the same. But if Tab Type set to Button, Tab Left is a button with a rounded left side and a flat right side.

Tab Center
Tab Center property is a GUIStyle and is used to fine tune the visual appearance of the tab buttons not at the right or leftmost. If Tab Type set to Button, Tab Center is a button with flat left and right side.

Tab Right
Tab Right property is a GUIStyle and is used to fine tune the visual appearance of the tab buttons at the rightmost. If Tab Type set to Button, Tab Right is a button with a flat left side and a rounded right side.