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

displayText : Text
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.
Signature
Text displayText

Methods

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