TabView Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables and disables sub-objects based on the currently toggled index of a ToggleCollection.
[UnityEngine.AddComponentMenu("MRTK/UX/Tab View")]
public class TabView : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/UX/Tab View")>]
type TabView = class
inherit MonoBehaviour
Public Class TabView
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourTabView
- Attributes
-
UnityEngine.AddComponentMenuAttribute
Constructors
| Name | Description |
|---|---|
| TabView() | |
Properties
| Name | Description |
|---|---|
| CurrentVisibleSectionIndex |
The index of the current active tab/toggle collection item |
| TabSections |
Tab sections array, one tab section maps to one item in the toggle collection. |
| ToggleCollection |
Toggle collection for this Tab View. |
Methods
| Name | Description |
|---|---|
| ForceSetTabActiveByLabel(String) |
Set a tab active based on the tab section's label name. |
| IsSectionVisible(String) |
Check if a section is visible based on the name. |