Class HapticControlActionManager
Class to assist with getting a haptic impulse channel group from an input action,
handling either an OpenXR HapticControl binding
or an Any (/*
) binding to identify an input device.
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.Inputs.Haptics
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public class HapticControlActionManager
Constructors
HapticControlActionManager()
Initializes and returns an instance of Haptic
Declaration
public HapticControlActionManager()
Methods
GetChannelGroup(InputAction)
Gets the haptic impulse channel group appropriate for the given input action.
Declaration
public IXRHapticImpulseChannelGroup GetChannelGroup(InputAction action)
Parameters
Type | Name | Description |
---|---|---|
Input |
action | The input action that is either bound to an OpenXR haptic binding or identifies the device. |
Returns
Type | Description |
---|---|
IXRHaptic |
Returns the haptic impulse channel group appropriate for the given action. |