API reference
API reference
Select your platform
No SDKs available
No versions available

OVRSimultaneousHandsAndControllersSample Class

Extends MonoBehaviour
This is a simple script for running the "Simultaneous Hands And Controllers" sample.
The sample is extremely straightforward: when the enabled button is pressed, OVRInput.EnableSimultaneousHandsAndControllers is invoked such that simultaneous hand and controller usage becomes feasible; correspondingly, OVRInput.DisableSimultaneousHandsAndControllers when the disable button is pressed. The sample also populates display text with the string representation of the currently active OVRInput.Controller.

Fields

The text asset using which the string representation of the currently active OVRInput.Controller will be displayed.
This field can be set or modified programmatically; however, leaving it null during an update is unsupported and will cause errors.

Member Functions

Enables simultaneous hands and controllers, disables the enable button, and enables the disable button.
This method is intended to be invoked in response to a press on the enable button.
Disables simultaneous hands and controllers, enables the enable button, and disables the disable button.
This method is intended to be invoked in response to a press on the enable button.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon