Holds the logic for toggling the menu.
More...
|
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...
|
|
|
ReferenceManager | referenceManager |
|
GameObject | teleportLaser |
|
GameObject | menuCube |
|
GameObject | menuHolder |
|
|
bool | MenuActive [get, set] |
|
Holds the logic for toggling the menu.
◆ 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
-
item | The 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
-
item | The gameobject turn back on later. |
subMenu | The 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
-
item | The gameobject to activate. |
activate | True 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
-
item | The gameobject to remove. |
The documentation for this class was generated from the following file:
- cellexalvr_cloudxr/Assets/Scripts/Menu/MenuToggler.cs