Class XRInputDeviceHapticImpulseProvider
A ScriptableObject that provides a group of haptic impulse channels for a device from the XR input subsystem as defined by its characteristics. Intended to be used with an XRInputHapticImpulseProvider as its object reference.
Implements
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Haptics
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.2/api/UnityEngine.XR.Interaction.Toolkit.Inputs.Haptics.XRInputDeviceHapticImpulseProvider.html")]
[CreateAssetMenu(fileName = "XRInputDeviceHapticImpulseProvider", menuName = "XR/Input Device Haptic Impulse Provider")]
public class XRInputDeviceHapticImpulseProvider : ScriptableObject, IXRHapticImpulseProvider
Methods
GetChannelGroup()
Gets the group of haptic impulse channels.
Declaration
public IXRHapticImpulseChannelGroup GetChannelGroup()
Returns
Type | Description |
---|---|
IXRHapticImpulseChannelGroup | Returns the haptic impulse channel group, which may be null. |