Language
Edit

TabView Class

Definition

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.MonoBehaviour
TabView
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.

Applies to