Click or drag to resize

UnityXRInputModule Class

Input module for Unity Native VR Integration (which uses openvr) Reference: https://docs.unity3d.com/Manual/OpenVRControllers.html https://docs.unity3d.com/Manual/xr_input.html https://docs.unity3d.com/Manual/class-InputManager.html https://docs.unity3d.com/ScriptReference/Input.html
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.ControllersInputModule
              ImmerseSDK.Platforms.UnityXRUnityXRInputModule
                ImmerseSDK.Platforms.UnityXRUnityXRGenericInputModule

Namespace:  ImmerseSDK.Platforms.UnityXR
Assembly:  ImmerseSDK.NoDll (in ImmerseSDK.NoDll.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public abstract class UnityXRInputModule : InputModule

The UnityXRInputModule type exposes the following members.

Constructors
  NameDescription
Protected methodUnityXRInputModule
Initializes a new instance of the UnityXRInputModule class
Top
Properties
  NameDescription
Public propertyHandStrategy
Top
Methods
  NameDescription
Protected methodDebugPrintButtonStates
Logs the state of each button to the console.
Public methodGesturePoint (Overrides InputModuleGesturePoint(Boolean).)
Public methodGestureUnPoint
Indicates whether a pointing gesture should be exited on the hand associated with this controller
(Overrides InputModuleGestureUnPoint(Boolean).)
Protected methodGetHandStrategy
Create an instance of the strategy we want to use for this controller
Public methodHandGrab
Indicates whether input on this controller has caused a grabbing state to be entered on the associated hand
(Overrides InputModuleHandGrab.)
Public methodHandGripAmount
Indicates the amount of grip the hand associated with this controller has from inputs in the current frame. Returns a float value between 0 (no grip) and 1 (fully gripped)
(Overrides InputModuleHandGripAmount.)
Public methodHandRelease
Indicates whether input on this controller has caused a grabbing state to be exited on the associated hand
(Overrides InputModuleHandRelease.)
Public methodInitialize
Called during Avatar setup, when this component is added to the avatars hand / controller gameObjects
(Overrides InputModuleInitialize(ControllerLocal).)
Protected methodIsAxisPressed
Test whether an axis has a "button press" using our own thresholds
Protected methodIsAxisReleased
Test whether an axis has a "button release" using our own thresholds
Public methodUIPress
Indicates whether controller input should cause a Menu UI press event
(Overrides InputModuleUIPress.)
Public methodUIRelease
Indicates whether controller input should cause a Menu UI release event
(Overrides InputModuleUIRelease.)
Protected methodUpdate
Unity component method
Public methodVibrate
Causes haptic feedback vibration on the controller to start this frame and continue for a specified amount of time
(Overrides InputModuleVibrate(Single).)
Top
Fields
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also