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

OVRControllerHelper Class

Extends MonoBehaviour
Implements UnityEngine.EventSystems.OVRInputModule.InputSource
Simple helper script that conditionally enables rendering of a controller if it is connected.

Fields

m_controller : OVRInput.Controller
The controller that determines whether or not to enable rendering of the controller model.
Signature
OVRInput.Controller OVRControllerHelper.m_controller
m_modelMetaTouchPlusLeftController : GameObject
The root GameObject that represents the Meta Quest Plus Controller model (Left).
Signature
GameObject OVRControllerHelper.m_modelMetaTouchPlusLeftController
m_modelMetaTouchPlusRightController : GameObject
The root GameObject that represents the Meta Quest Plus Controller model (Right).
Signature
GameObject OVRControllerHelper.m_modelMetaTouchPlusRightController
m_modelMetaTouchProLeftController : GameObject
The root GameObject that represents the Meta Touch Pro Controller model (Left).
Signature
GameObject OVRControllerHelper.m_modelMetaTouchProLeftController
m_modelMetaTouchProRightController : GameObject
The root GameObject that represents the Meta Touch Pro Controller model (Right).
Signature
GameObject OVRControllerHelper.m_modelMetaTouchProRightController
m_modelOculusTouchQuest2LeftController : GameObject
The root GameObject that represents the Oculus Touch for Quest 2 Controller model (Left).
Signature
GameObject OVRControllerHelper.m_modelOculusTouchQuest2LeftController
m_modelOculusTouchQuest2RightController : GameObject
The root GameObject that represents the Oculus Touch for Quest 2 Controller model (Right).
Signature
GameObject OVRControllerHelper.m_modelOculusTouchQuest2RightController
m_modelOculusTouchQuestAndRiftSLeftController : GameObject
The root GameObject that represents the Oculus Touch for Quest And RiftS Controller model (Left).
Signature
GameObject OVRControllerHelper.m_modelOculusTouchQuestAndRiftSLeftController
m_modelOculusTouchQuestAndRiftSRightController : GameObject
The root GameObject that represents the Oculus Touch for Quest And RiftS Controller model (Right).
Signature
GameObject OVRControllerHelper.m_modelOculusTouchQuestAndRiftSRightController
m_modelOculusTouchRiftLeftController : GameObject
The root GameObject that represents the Oculus Touch for Rift Controller model (Left).
Signature
GameObject OVRControllerHelper.m_modelOculusTouchRiftLeftController
m_modelOculusTouchRiftRightController : GameObject
The root GameObject that represents the Oculus Touch for Rift Controller model (Right).
Signature
GameObject OVRControllerHelper.m_modelOculusTouchRiftRightController
m_showState : OVRInput.InputDeviceShowState
Determines if the controller should be hidden based on held state.
Signature
OVRInput.InputDeviceShowState OVRControllerHelper.m_showState
RayHelper : OVRRayHelper
An optional component for provind shell like ray functionality - highlighting where you're selecting in the UI and responding to pinches / button presses.
Signature
OVRRayHelper OVRControllerHelper.RayHelper
showWhenHandsArePoweredByNaturalControllerPoses : bool
If controller driven hand poses is on, and the mode is Natural, controllers will be hidden unless this is true.
Signature
bool OVRControllerHelper.showWhenHandsArePoweredByNaturalControllerPoses

Methods

GetHand ()
Signature
OVRPlugin.Hand OVRControllerHelper.GetHand()
Returns
OVRPlugin.Hand
GetPointerRayTransform ()
Signature
Transform OVRControllerHelper.GetPointerRayTransform()
Returns
Transform
InputFocusAquired ()
Signature
void OVRControllerHelper.InputFocusAquired()
Returns
void
InputFocusLost ()
Signature
void OVRControllerHelper.InputFocusLost()
Returns
void
IsActive ()
Signature
bool OVRControllerHelper.IsActive()
Returns
bool
IsPressed ()
Signature
bool OVRControllerHelper.IsPressed()
Returns
bool
IsReleased ()
Signature
bool OVRControllerHelper.IsReleased()
Returns
bool
IsValid ()
Signature
bool OVRControllerHelper.IsValid()
Returns
bool
UpdatePointerRay ( rayData )
Signature
void OVRControllerHelper.UpdatePointerRay(OVRInputRayData rayData)
Parameters
Returns
void