Holds the logic for rotating the menu.
More...
|
enum | Rotation { Front,
Right,
Back,
Left
} |
|
|
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...
|
|
|
Rotation | SideFacingPlayer [get, set] |
|
bool | RequireToggleToClick [get, set] |
|
bool | AllowRotation = false [get, set] |
|
Holds the logic for rotating the menu.
◆ 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:
- cellexalvr_cloudxr/Assets/Scripts/Menu/MenuRotator.cs