Interface IXRHapticImpulseChannelGroup
An interface that allows for getting the haptic impulse channel(s) on a device.
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Haptics
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public interface IXRHapticImpulseChannelGroup
Properties
channelCount
The number of haptic channels on the device.
Declaration
int channelCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
Methods
GetChannel(int)
Gets the haptic channel on the device by index.
Declaration
IXRHapticImpulseChannel GetChannel(int channel = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int | channel | The haptic channel index. |
Returns
| Type | Description |
|---|---|
| IXRHapticImpulseChannel | Returns the haptic channel, or null if the haptic channel does not exist. |