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.
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.
void EnableSimultaneousHandsAndControllers ( )
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.
void DisableSimultaneousHandsAndControllers ( )
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.