CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.Menu.MenuToggler Class Reference

Holds the logic for toggling the menu. More...

Inheritance diagram for CellexalVR.Menu.MenuToggler:

Public Member Functions

void ToggleMenu ()
 
void AddGameObjectToActivateNoChildren (GameObject item, bool activate)
 Adds a gameobject to activate or not activate later when the menu comes back on. This method does nothing if the menu is already active. More...
 
void AddGameObjectToActivate (GameObject item, GameObject subMenu)
 Adds a gameobject to the list of gameobjects to show when the menu is turned back on. The gameobject will only be hidden if the whole menu is hidden or if the submenu it is attached to is hidden. This should be used when adding a gameobject to a submenu. More...
 
void AddGameObjectToActivate (GameObject item)
 Adds a gameobject to the list of gameobjects to show when to menu is turned back on. More...
 
void RemoveObjectToActivate (GameObject item)
 Removes the gameobject and all subsequent child gameobjects from the list of gameobjects to show when the menu is turned back on. More...
 

Public Attributes

ReferenceManager referenceManager
 
GameObject teleportLaser
 
GameObject menuCube
 
GameObject menuHolder
 

Properties

bool MenuActive [get, set]
 

Detailed Description

Holds the logic for toggling the menu.

Member Function Documentation

◆ AddGameObjectToActivate() [1/2]

void CellexalVR.Menu.MenuToggler.AddGameObjectToActivate ( GameObject  item)

Adds a gameobject to the list of gameobjects to show when to menu is turned back on.

Parameters
itemThe gameobject to turn back on.

◆ AddGameObjectToActivate() [2/2]

void CellexalVR.Menu.MenuToggler.AddGameObjectToActivate ( GameObject  item,
GameObject  subMenu 
)

Adds a gameobject to the list of gameobjects to show when the menu is turned back on. The gameobject will only be hidden if the whole menu is hidden or if the submenu it is attached to is hidden. This should be used when adding a gameobject to a submenu.

Parameters
itemThe gameobject turn back on later.
subMenuThe menu this gameobject is part of.

◆ AddGameObjectToActivateNoChildren()

void CellexalVR.Menu.MenuToggler.AddGameObjectToActivateNoChildren ( GameObject  item,
bool  activate 
)

Adds a gameobject to activate or not activate later when the menu comes back on. This method does nothing if the menu is already active.

Parameters
itemThe gameobject to activate.
activateTrue for activating the gameobject later, false for not activating it.

◆ RemoveObjectToActivate()

void CellexalVR.Menu.MenuToggler.RemoveObjectToActivate ( GameObject  item)

Removes the gameobject and all subsequent child gameobjects from the list of gameobjects to show when the menu is turned back on.

Parameters
itemThe gameobject to remove.

The documentation for this class was generated from the following file: