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

OVRControllerHelper Class

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

Overview

Data Fields

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

Public Member Functions

void
void
bool
bool
Transform
bool
IsValid ( )
bool
void

Details

Fields

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

Member Functions

void OVRControllerHelper.InputFocusAquired ( )
No description available.
void OVRControllerHelper.InputFocusLost ( )
No description available.
bool OVRControllerHelper.IsPressed ( )
No description available.
bool OVRControllerHelper.IsReleased ( )
No description available.
Transform OVRControllerHelper.GetPointerRayTransform ( )
No description available.
bool OVRControllerHelper.IsValid ( )
No description available.
bool OVRControllerHelper.IsActive ( )
No description available.
void OVRControllerHelper.UpdatePointerRay
( OVRInputRayData rayData )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon