Handles interactions with the globe in a VR environment. Provides functionality for rotating and resizing the globe.
More...
Inherits XRBaseInteractable.
|
float | rotationSpeed = 100f |
| Speed at which the globe rotates.
|
|
float | resizeSpeed = 0.2f |
| Speed at which the globe is resized.
|
|
float | minScale = 0.5f |
| Minimum allowed scale for the globe.
|
|
float | maxScale = 2f |
| Maximum allowed scale for the globe.
|
|
|
override void | OnSelectEntered (SelectEnterEventArgs args) |
| Handles the event when an interactor starts interacting with the globe.
|
|
override void | OnSelectExited (SelectExitEventArgs args) |
| Handles the event when an interactor stops interacting with the globe.
|
|
Handles interactions with the globe in a VR environment. Provides functionality for rotating and resizing the globe.
◆ OnSelectEntered()
override void GlobeInteraction.OnSelectEntered |
( |
SelectEnterEventArgs | args | ) |
|
|
protected |
Handles the event when an interactor starts interacting with the globe.
- Parameters
-
args | Event arguments containing interactor and interactable details. |
◆ OnSelectExited()
override void GlobeInteraction.OnSelectExited |
( |
SelectExitEventArgs | args | ) |
|
|
protected |
Handles the event when an interactor stops interacting with the globe.
- Parameters
-
args | Event arguments containing interactor and interactable details. |
◆ StartResizingAndMoving()
void GlobeInteraction.StartResizingAndMoving |
( |
| ) |
|
Initializes the resizing and moving state for the globe.
◆ maxScale
float GlobeInteraction.maxScale = 2f |
Maximum allowed scale for the globe.
◆ minScale
float GlobeInteraction.minScale = 0.5f |
Minimum allowed scale for the globe.
◆ resizeSpeed
float GlobeInteraction.resizeSpeed = 0.2f |
Speed at which the globe is resized.
◆ rotationSpeed
float GlobeInteraction.rotationSpeed = 100f |
Speed at which the globe rotates.
The documentation for this class was generated from the following file: