SendHapticImpulse(uint, float, float)
Sends a haptic impulse to a device.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
public bool SendHapticImpulse(uint channel, float amplitude, float duration = 1)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if successful. Returns false otherwise. |
Remarks
Sends an impulse (amplitude and frequency) to a device.
Note: Not all devices support all parameters (OpenVR currently only supports amplitude). To determine whether impulse haptics are supported, call the TryGetHapticCapabilities method and inspect the supportsImpulse property.