# SendHapticImpulse(uint, float, float)

> Sends a haptic impulse to a device.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.XR](/engine/6000.6/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.XRModule

```csharp
public bool SendHapticImpulse(uint channel, float amplitude, float duration = 1)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The channel to receive the impulse.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The normalized (0.0 to 1.0) amplitude value of the haptic impulse to play on the device.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The duration in seconds that the haptic impulse will play. Only supported on Oculus.

### Returns

| Type                                                          | Description                                          |
| ------------------------------------------------------------- | ---------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.
