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

Holds the logic for rotating the menu. More...

Inheritance diagram for CellexalVR.Menu.MenuRotator:

Public Types

enum  Rotation { Front, Right, Back, Left }
 

Public Member Functions

void OnValidate ()
 Editor script to ensure all menus and submenus have the same material without having to populate manually. More...
 
void RotateRight (int times=1)
 Rotates the menu 90 degrees to the right. More...
 
void RotateLeft (int times=1)
 Rotates the menu 90 degrees to the left. More...
 
void StopRotating ()
 Stops the menu from rotating and returns the final z angle. More...
 

Public Attributes

Material menuMaterial
 

Properties

Rotation SideFacingPlayer [get, set]
 
bool RequireToggleToClick [get, set]
 
bool AllowRotation = false [get, set]
 

Detailed Description

Holds the logic for rotating the menu.

Member Function Documentation

◆ OnValidate()

void CellexalVR.Menu.MenuRotator.OnValidate ( )

Editor script to ensure all menus and submenus have the same material without having to populate manually.

◆ RotateLeft()

void CellexalVR.Menu.MenuRotator.RotateLeft ( int  times = 1)

Rotates the menu 90 degrees to the left.

◆ RotateRight()

void CellexalVR.Menu.MenuRotator.RotateRight ( int  times = 1)

Rotates the menu 90 degrees to the right.

◆ StopRotating()

void CellexalVR.Menu.MenuRotator.StopRotating ( )

Stops the menu from rotating and returns the final z angle.


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