|
List< EnvironmentTab > | tabs |
|
EnvironmentTab | tabPrefab |
|
EnvironmentTabScrollButton | tabScrollButton1 |
|
EnvironmentTabScrollButton | tabScrollButton2 |
|
float | tabScrollTime = 0.5f |
|
Vector3 | tabButtonSize = new Vector3(0.1f, 0f, 0f) |
|
Vector3 | tabButtonPositionIncrement |
|
Vector3 | tabButtonBoundsCenter |
|
Vector3 | tabButtonBoundsSize |
|
Vector3[] | tabButtonPositions |
|
Vector3[] | tabScrollPositions |
|
UnityEvent | OnActivate |
|
UnityEvent | RaycastEnter |
|
UnityEvent | RaycastExit |
|
bool | canBePushedAndPulled = true |
|
bool | active = true |
|
◆ AddTab()
EnvironmentTab CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.AddTab |
( |
| ) |
|
Adds a new tab to this menu, using the tabPrefab.
- Returns
- The instantiated EnvironmentTab
◆ MoveTabButtons()
void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.MoveTabButtons |
( |
| ) |
|
Moves all tab button gameobjects to their correct positions. This function moves all tab buttons, visible and hidden, and sets the disables the hidden ones with GameObject.SetActive(bool).
◆ ScrollTabs()
void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.ScrollTabs |
( |
int |
direction | ) |
|
Scrolls the tab buttons.
- Parameters
-
direction | The number of tab buttons to scroll, positive numbers will scroll towards higher indices, negative numbers scroll towards lower indices. |
- Exceptions
-
System.ArgumentException | Thrown if direction is 0. |
◆ SetTabButtonPositions()
void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.SetTabButtonPositions |
( |
bool |
overrideShowScrollButtons = false | ) |
|
Recalculates tabButtonPositions and tabScrollPositions. Should be called if an EnvironmentTab is added or removed.
◆ SwitchToTab()
void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.SwitchToTab |
( |
EnvironmentTab |
tab | ) |
|
Switches to the specified tab by disabling the content of all others, and enabling the content of the specified tab.
- Parameters
-
◆ TurnOffAllTabs()
void CellexalVR.AnalysisObjects.EnvironmentMenuWithTabs.TurnOffAllTabs |
( |
| ) |
|
Dsiables the content gameobject on all tabs.
The documentation for this class was generated from the following file:
- cellexalvr_cloudxr/Assets/Scripts/AnalysisObjects/EnvironmentMenuWithTabs.cs